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: optimized the generation rules of thread name factory #2759

Merged

Conversation

caohdgege
Copy link
Contributor

Ⅰ. Describe what this PR did

optimized the generation rules of thread name factory

Ⅱ. Does this pull request fix one issue?

fixes #2741

Ⅲ. Why don't you add test cases (unit test/integration test)?

has already add NamedThreadFactoryTest#testThreadNameHasCounterWithPrefixCounter

Ⅳ. Describe how to verify it

test cases pass
can view the thread name using jstack or jconsole

Ⅴ. Special notes for reviews

@funky-eyes funky-eyes requested a review from ggndnn June 3, 2020 14:34
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2020

Codecov Report

Merging #2759 into develop will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2759      +/-   ##
=============================================
+ Coverage      50.46%   50.48%   +0.01%     
- Complexity      2886     2888       +2     
=============================================
  Files            572      572              
  Lines          18590    18591       +1     
  Branches        2232     2232              
=============================================
+ Hits            9382     9385       +3     
  Misses          8285     8285              
+ Partials         923      921       -2     
Impacted Files Coverage Δ Complexity Δ
...ava/io/seata/common/thread/NamedThreadFactory.java 90.47% <100.00%> (+0.47%) 6.00 <3.00> (ø)
...in/java/io/seata/server/session/GlobalSession.java 84.16% <0.00%> (+0.45%) 72.00% <0.00%> (+1.00%)
...o/seata/server/coordinator/DefaultCoordinator.java 55.15% <0.00%> (+0.51%) 29.00% <0.00%> (+1.00%)

@jsbxyyx
Copy link
Member

jsbxyyx commented Jun 4, 2020

@caohdgege please check style. format code.

@xingfudeshi xingfudeshi changed the title bugfix: optimized the generation rules of thread name factory optimize: optimized the generation rules of thread name factory Jun 5, 2020
Copy link
Member

@xingfudeshi xingfudeshi 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 added the module/common common module label Jun 5, 2020
Copy link
Member

@jsbxyyx jsbxyyx left a comment

Choose a reason for hiding this comment

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

LGTM

@jsbxyyx jsbxyyx merged commit 7a6583a into apache:develop Jun 5, 2020
@slievrly slievrly added this to the 1.3.0 milestone Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/common common module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

关于线程的name生成规则
6 participants