-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make all the thread name start with SOFA #85
Make all the thread name start with SOFA #85
Conversation
@liangyuanpeng You need run |
hi,@ujjboy I've done this |
No, I think you must did not run this before you commit code, otherwise It will not exists uncommit files. Just try again, and you will find |
ok,my fault |
@liangyuanpeng You don't have to create a new PR. You can just run |
Just keep commit to your dev branch |
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
============================================
+ Coverage 63.84% 63.89% +0.05%
+ Complexity 596 595 -1
============================================
Files 263 263
Lines 11304 11304
Branches 1892 1892
============================================
+ Hits 7217 7223 +6
+ Misses 3114 3109 -5
+ Partials 973 972 -1
Continue to review full report at Codecov.
|
*/ | ||
public NamedThreadFactory(String prefix) { | ||
this(prefix, false); | ||
public NamedThreadFactory(String prefix2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the parameter name to secondPrefix
? Because you have a field called firstPrefix
, so I think secondPrefix
is more suitable then prefix2
Hi, @liangyuanpeng! The idea of automatically add prefix is good, but So I suggest we don't change the behavior of And you missed the files below:
|
I think start with "SOFA" just some like end with "-T"
and in my code , have no “SOFA-DELAY-EXPORT” and “SOFA-BOLT-BIZ”
2.
|
@liangyuanpeng I means the code which you post need change to And I found you miss more code blow:
|
@ujjboy 1.
2.
|
@liangyuanpeng 👍 Yes, that is what I mean. And |
@@ -87,7 +87,7 @@ public void init(ServerConfig serverConfig) { | |||
protected ThreadPoolExecutor initThreadPool(ServerConfig serverConfig) { | |||
ThreadPoolExecutor threadPool = BusinessPool.initPool(serverConfig); | |||
threadPool.setThreadFactory(new NamedThreadFactory( | |||
"SofaBizProcessor-" + serverConfig.getPort(), serverConfig.isDaemon())); | |||
"BOLT-BIZ" + serverConfig.getPort(), serverConfig.isDaemon())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "BOLT-BIZ-" ?
…peng/sofa-rpc into enhancement_threadname_feature
all the thread name start with SOFA
detail see #78