sofastack / sofa-registry

SOFARegistry is a production-level, low-latency, high-availability service registry powered by Ant Financial.
https://www.sofastack.tech/sofa-registry/docs/Home
Apache License 2.0
653 stars 247 forks source link

fix: graceful shutdown #246

Closed dzdx closed 2 years ago

dzdx commented 2 years ago

Motivation:

Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve.

Modification:

Describe the idea and modifications you've done.

Result:

Fixes #.

If there is no issue then describe the changes introduced by this PR.

codecov[bot] commented 2 years ago

Codecov Report

Merging #246 (a8cda2d) into master (9fde1be) will increase coverage by 0.01%. The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #246      +/-   ##
============================================
+ Coverage     76.62%   76.64%   +0.01%     
  Complexity       48       48              
============================================
  Files           439      439              
  Lines         15472    15472              
  Branches       1504     1504              
============================================
+ Hits          11856    11859       +3     
+ Misses         2955     2952       -3     
  Partials        661      661              
Impacted Files Coverage Δ
.../server/shared/meta/AbstractMetaServerService.java 78.20% <0.00%> (ø)
...istry/store/api/elector/AbstractLeaderElector.java 85.50% <0.00%> (ø)
...a/registry/jdbc/elector/MetaJdbcLeaderElector.java 85.71% <100.00%> (ø)
...gistry/server/session/push/TriggerPushContext.java 66.66% <0.00%> (-3.71%) :arrow_down:
...ta/lease/impl/DefaultCrossDcMetaServerManager.java 84.61% <0.00%> (-1.54%) :arrow_down:
...ofa/registry/server/session/store/DataIndexer.java 90.32% <0.00%> (+8.06%) :arrow_up:

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 9fde1be...a8cda2d. Read the comment docs.