Skip to content

Fix kill yarn job error when failover caused by doesn't set ProcessDefinition#10948

Merged
ruanwenjun merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixKillYarnJobExceptionWhenFailover
Jul 13, 2022
Merged

Fix kill yarn job error when failover caused by doesn't set ProcessDefinition#10948
ruanwenjun merged 1 commit intoapache:devfrom
ruanwenjun:dev_wenjun_fixKillYarnJobExceptionWhenFailover

Conversation

@ruanwenjun
Copy link
Copy Markdown
Member

Purpose of the pull request

Due to we don't set the processDefinition so will get NPE when get task log.

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 13, 2022

Codecov Report

Merging #10948 (8348108) into dev (427c585) will decrease coverage by 0.02%.
The diff coverage is 60.60%.

❗ Current head 8348108 differs from pull request most recent head c5d1239. Consider uploading reports for the commit c5d1239 to get more accurate results

@@             Coverage Diff              @@
##                dev   #10948      +/-   ##
============================================
- Coverage     40.31%   40.29%   -0.03%     
+ Complexity     4858     4857       -1     
============================================
  Files           943      943              
  Lines         36994    37015      +21     
  Branches       4059     4062       +3     
============================================
+ Hits          14914    14915       +1     
- Misses        20578    20593      +15     
- Partials       1502     1507       +5     
Impacted Files Coverage Δ
...org/apache/dolphinscheduler/alert/AlertConfig.java 0.00% <0.00%> (ø)
...permission/ResourcePermissionCheckServiceImpl.java 67.44% <50.00%> (-0.82%) ⬇️
...che/dolphinscheduler/alert/AlertSenderService.java 54.74% <66.66%> (+0.41%) ⬆️
...r/server/master/service/MasterFailoverService.java 60.55% <66.66%> (-1.36%) ⬇️
...r/server/master/service/WorkerFailoverService.java 50.00% <80.00%> (-0.46%) ⬇️
...e/dolphinscheduler/remote/NettyRemotingClient.java 50.00% <0.00%> (-2.78%) ⬇️
...duler/api/service/impl/EnvironmentServiceImpl.java 78.78% <0.00%> (-1.74%) ⬇️
...r/plugin/task/sqoop/parameter/SqoopParameters.java 54.66% <0.00%> (+1.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 427c585...c5d1239. Read the comment docs.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

75.0% 75.0% Coverage
10.0% 10.0% Duplication

@ruanwenjun ruanwenjun merged commit b245e7c into apache:dev Jul 13, 2022
@ruanwenjun ruanwenjun deleted the dev_wenjun_fixKillYarnJobExceptionWhenFailover branch July 13, 2022 14:32
SnowMoon-Dev pushed a commit to SnowMoon-Dev/dolphinscheduler that referenced this pull request Jul 14, 2022
@ruanwenjun ruanwenjun added this to the 3.0.0-release milestone Jul 14, 2022
ruanwenjun added a commit that referenced this pull request Jul 19, 2022
ruanwenjun added a commit to ruanwenjun/dolphinscheduler that referenced this pull request Aug 1, 2022
* Fix taskInstance's host is not worker nettyServer address (apache#10926)

* Fix taskInstance's host is not worker nettyServer address

* Remove unnecessary mock

(cherry picked from commit df0416c)

* Fix kill yarn job error when failover caused by doesn't set ProcessDefinition (apache#10948)

(cherry picked from commit b245e7c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants