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

optimize: use PriorityQueue to simply ShutdownHook #3260

Merged
merged 6 commits into from
Nov 23, 2020

Conversation

selfishlover
Copy link
Contributor

Ⅰ. Describe what this PR did

Use PriorityQueue to replace TreeSet, so that ShutdownHook's logic could be more clearlly and simple.

@funky-eyes funky-eyes added this to the 1.5.0 milestone Nov 7, 2020
@codecov-io
Copy link

codecov-io commented Nov 11, 2020

Codecov Report

Merging #3260 (2654e3a) into develop (5e51d5e) will increase coverage by 0.20%.
The diff coverage is 66.66%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3260      +/-   ##
=============================================
+ Coverage      50.91%   51.12%   +0.20%     
- Complexity      3288     3295       +7     
=============================================
  Files            614      614              
  Lines          20148    20125      -23     
  Branches        2522     2514       -8     
=============================================
+ Hits           10259    10288      +29     
+ Misses          8859     8805      -54     
- Partials        1030     1032       +2     
Impacted Files Coverage Δ Complexity Δ
.../src/main/java/io/seata/core/rpc/ShutdownHook.java 82.85% <66.66%> (+82.85%) 8.00 <3.00> (+8.00)

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

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

LGTM

@l81893521 l81893521 merged commit 15f0d6e into apache:develop Nov 23, 2020
@selfishlover selfishlover deleted the optimize-ShutdownHook branch November 24, 2020 05:13
LiWenGu pushed a commit to LiWenGu/seata that referenced this pull request Dec 4, 2020
@wangliang181230 wangliang181230 modified the milestones: 1.5.0, 1.4.1 Dec 11, 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.

None yet

6 participants