Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: the polaris config relation non-daemon thread should stop when application fails to start. #1101

Merged

Conversation

shuiqingliu
Copy link
Contributor

PR Type

Bugfix

Describe what this PR does for and how you did.

the polaris config relation non-daemon thread should stop when application fails to start.

Adding the issue link (#xxx) if possible.

#1032

Note

Checklist

  • Add information of this PR to CHANGELOG.md in root of project.
  • Add documentation in javadoc or comment below the PR if necessary.

Checklist (Optional)

  • Will pull request to branch of 2020.0.
  • Will pull request to branch of 2022.0.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #1101 (7259998) into 2020.0 (5858b02) will decrease coverage by 0.10%.
The diff coverage is 70.00%.

@@             Coverage Diff              @@
##             2020.0    #1101      +/-   ##
============================================
- Coverage     81.69%   81.59%   -0.10%     
- Complexity     1609     1612       +3     
============================================
  Files           248      249       +1     
  Lines          5435     5445      +10     
  Branches        617      618       +1     
============================================
+ Hits           4440     4443       +3     
- Misses          642      648       +6     
- Partials        353      354       +1     
Files Changed Coverage Δ
...polaris/config/PolarisConfigAutoConfiguration.java 100.00% <ø> (ø)
...stener/PolarisContextApplicationEventListener.java 66.66% <66.66%> (ø)
...ontext/config/PolarisContextAutoConfiguration.java 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

SkyeBeFreeman and others added 4 commits September 12, 2023 17:47
 into fix-long-pulling-thread-stop-2020.0

# Conflicts:
#	CHANGELOG.md
…qingliu/spring-cloud-tencent into fix-long-pulling-thread-stop-2020.0
if we register a destroy hook for RemoteConfigFileRepo on the class instance , the static thread pool may be terminated by the bootstrap context closing ,Therefore,it's better to register the destroy hook when the  application is prepared, or when the application fails to start, in order to properly destroy resources
@SkyeBeFreeman SkyeBeFreeman merged commit 717d08b into Tencent:2020.0 Sep 14, 2023
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.

Polaris' connect did not automatically stop when spring boot application has stopped
2 participants