Skip to content

simply NettyExecutorManager.execute logic making it readable#2744

Merged
davidzollo merged 4 commits intoapache:devfrom
gabry-lab:optimizeNettyExecute
May 19, 2020
Merged

simply NettyExecutorManager.execute logic making it readable#2744
davidzollo merged 4 commits intoapache:devfrom
gabry-lab:optimizeNettyExecute

Conversation

@gabry-lab
Copy link
Copy Markdown
Member

What is the purpose of the pull request

  • NettyExecutorManager.execute logic is not graceful , using LinkedList to make it readable

Brief change log

  • NettyExecutorManager.execute()

@gabry-lab
Copy link
Copy Markdown
Member Author

hi, @qiaozhanwei could you help to review this PR ?

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2744 into dev will decrease coverage by 0.18%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #2744      +/-   ##
============================================
- Coverage     37.19%   37.00%   -0.19%     
+ Complexity     2554     2543      -11     
============================================
  Files           434      434              
  Lines         19977    19975       -2     
  Branches       2423     2424       +1     
============================================
- Hits           7430     7392      -38     
- Misses        11880    11916      +36     
  Partials        667      667              
Impacted Files Coverage Δ Complexity Δ
...master/dispatch/executor/NettyExecutorManager.java 83.92% <85.71%> (+8.06%) 10.00 <3.00> (+1.00)
...duler/server/entity/DataxTaskExecutionContext.java 35.00% <0.00%> (-60.00%) 7.00% <0.00%> (-6.00%)
.../server/worker/processor/TaskExecuteProcessor.java 10.16% <0.00%> (-27.12%) 1.00% <0.00%> (-2.00%)
...he/dolphinscheduler/api/service/LoggerService.java 82.60% <0.00%> (-8.70%) 9.00% <0.00%> (-1.00%)
...nscheduler/server/entity/TaskExecutionContext.java 81.18% <0.00%> (-5.95%) 57.00% <0.00%> (-3.00%)
...ver/master/consumer/TaskPriorityQueueConsumer.java 54.41% <0.00%> (-4.42%) 16.00% <0.00%> (ø%)
...e/dolphinscheduler/remote/NettyRemotingClient.java 51.07% <0.00%> (-2.16%) 9.00% <0.00%> (-1.00%)
...he/dolphinscheduler/common/thread/ThreadUtils.java 77.77% <0.00%> (+6.34%) 15.00% <0.00%> (+1.00%)

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 1771aa5...edb44ae. Read the comment docs.

Copy link
Copy Markdown
Contributor

@qiaozhanwei qiaozhanwei left a comment

Choose a reason for hiding this comment

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

great,code is simplify,but poor readability, @other reivew ,I personally think it is necessary to retry in the catch

Copy link
Copy Markdown
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

89.5% 89.5% Coverage
0.0% 0.0% Duplication

@EricJoy2048
Copy link
Copy Markdown
Member

+1

@davidzollo davidzollo merged commit 1a78c11 into apache:dev May 19, 2020
@gabry-lab gabry-lab deleted the optimizeNettyExecute branch May 19, 2020 12:17
nauu pushed a commit to nauu/incubator-dolphinscheduler that referenced this pull request May 19, 2020
…2744)

* simply NettyExecutorManager.execute logic making it readable

* fix NPE

* remove unused import

Co-authored-by: dailidong <dailidong66@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants