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

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

Merged

Conversation

shuiqingliu
Copy link
Contributor

@shuiqingliu shuiqingliu commented Sep 6, 2023

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.

@shuiqingliu shuiqingliu force-pushed the feature-long-pulling-thread-stop branch from 351edf3 to 1035b9c Compare September 6, 2023 03:00
@shuiqingliu shuiqingliu changed the title fix: the polaris config relation non-daemon thread should stop when a… fix: the polaris config relation non-daemon thread should stop when application fails to start. Sep 6, 2023
@SkyeBeFreeman SkyeBeFreeman added this to the 1.13.0 milestone Sep 6, 2023
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #1100 (74b1279) into 2021.0 (d5fcb0b) will decrease coverage by 0.22%.
Report is 1 commits behind head on 2021.0.
The diff coverage is 70.00%.

@@             Coverage Diff              @@
##             2021.0    #1100      +/-   ##
============================================
- Coverage     81.41%   81.20%   -0.22%     
- Complexity     1675     1683       +8     
============================================
  Files           251      252       +1     
  Lines          5683     5729      +46     
  Branches        662      674      +12     
============================================
+ Hits           4627     4652      +25     
- Misses          678      688      +10     
- Partials        378      389      +11     
Files Changed Coverage Δ
...istener/PolarisConfigApplicationEventListener.java 66.66% <66.66%> (ø)
...polaris/config/PolarisConfigAutoConfiguration.java 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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
…gliu/spring-cloud-tencent into feature-long-pulling-thread-stop
…gliu/spring-cloud-tencent into feature-long-pulling-thread-stop
@SkyeBeFreeman SkyeBeFreeman merged commit 6a4e50b into Tencent:2021.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