Skip to content

[Bug-3187]close Heartbeat thread pool when MasterRegistry unRegistry#3188

Merged
qiaozhanwei merged 4 commits intoapache:devfrom
tswstarplanet:close_thread_pool
Jul 13, 2020
Merged

[Bug-3187]close Heartbeat thread pool when MasterRegistry unRegistry#3188
qiaozhanwei merged 4 commits intoapache:devfrom
tswstarplanet:close_thread_pool

Conversation

@tswstarplanet
Copy link
Copy Markdown
Contributor

@tswstarplanet tswstarplanet commented Jul 10, 2020

fix #3187

Tips

What is the purpose of the pull request

(For example: This pull request adds checkstyle plugin.)

Brief change log

Close Heartbeat thread pool when MasterRegistry unRegistry.
Add unit test

Verify this pull request

(Please pick either of the following options)

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:

(example:)

  • Added dolphinscheduler-dao tests for end-to-end.
  • Added CronUtilsTest to verify the change.
  • Manually verified the change by testing locally.

Comment on lines +145 to +147
public ScheduledExecutorService getHeartBeatExecutor() {
return heartBeatExecutor;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It’s a bit redundant here. If it’s just for testing, I don’t think it’s necessary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It’s a bit redundant here. If it’s just for testing, I don’t think it’s necessary.

I agree with @CalvinKirs .

@yangyichao-mango
Copy link
Copy Markdown
Contributor

Hi,

Good job, LGTM.

Copy link
Copy Markdown
Member

@CalvinKirs CalvinKirs left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

+1

@qiaozhanwei qiaozhanwei merged commit 88f9bed into apache:dev Jul 13, 2020
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.

[BUG] Heartbeat thread pool does not shutdown when MasterRegistry unRegistry

4 participants