You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2024/08/26 04:57:25 UTC
[PR] [CELEBORN-1578] Make Worker#timer have thread name and daemon [celeborn]
cxzl25 opened a new pull request, #2704:
URL: https://github.com/apache/celeborn/pull/2704
### What changes were proposed in this pull request?
### Why are the changes needed?
Current jstack
```java
"pool-36-thread-1" #118 prio=5 os_prio=0 tid=0x00007f40cc00d000 nid=0xd3e0 waiting on condition [0x00007f3ecbffe000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at io.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:600)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:496)
at java.lang.Thread.run(Thread.java:745)
```
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
GA
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1578] Make Worker#timer have thread name and daemon [celeborn]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas commented on PR #2704:
URL: https://github.com/apache/celeborn/pull/2704#issuecomment-2315990280
@cxzl25, thanks for the contribution. Merged to main(v0.6.0), branch-0.5(v0.5.2) and branch-0.4(v0.4.3).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1578] Make Worker#timer have thread name and daemon [celeborn]
Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #2704:
URL: https://github.com/apache/celeborn/pull/2704#discussion_r1732073797
##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Worker.scala:
##########
@@ -337,7 +337,7 @@ private[celeborn] class Worker(
conf.workerCleanThreads)
val asyncReplyPool: ScheduledExecutorService =
ThreadUtils.newDaemonSingleThreadScheduledExecutor("worker-rpc-async-replier")
- val timer = new HashedWheelTimer()
+ val timer = new HashedWheelTimer(ThreadUtils.namedThreadFactory("worker-timer"))
Review Comment:
HashedWheelTimer will generate only one thread. So I think this suggestion is reasonable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1578] Make Worker#timer have thread name and daemon [celeborn]
Posted by "SteNicholas (via GitHub)" <gi...@apache.org>.
SteNicholas closed pull request #2704: [CELEBORN-1578] Make Worker#timer have thread name and daemon
URL: https://github.com/apache/celeborn/pull/2704
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1578] Make Worker#timer have thread name and daemon [celeborn]
Posted by "s0nskar (via GitHub)" <gi...@apache.org>.
s0nskar commented on code in PR #2704:
URL: https://github.com/apache/celeborn/pull/2704#discussion_r1730710737
##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Worker.scala:
##########
@@ -337,7 +337,7 @@ private[celeborn] class Worker(
conf.workerCleanThreads)
val asyncReplyPool: ScheduledExecutorService =
ThreadUtils.newDaemonSingleThreadScheduledExecutor("worker-rpc-async-replier")
- val timer = new HashedWheelTimer()
+ val timer = new HashedWheelTimer(ThreadUtils.namedThreadFactory("worker-timer"))
Review Comment:
should we use `namedSingleThreadFactory` instead?
```suggestion
val timer = new HashedWheelTimer(ThreadUtils.namedSingleThreadFactory("worker-timer"))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org