jiacheliu3 commented on code in PR #747:
URL: https://github.com/apache/ratis/pull/747#discussion_r970557423
##########
ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java:
##########
@@ -137,7 +139,9 @@ private void handle(TimeDuration extraSleep) {
/** Start this monitor. */
public void start() {
- final MemoizedSupplier<Thread> supplier = JavaUtils.memoize(() -> new
Daemon(this::run));
+ final MemoizedSupplier<Thread> supplier = JavaUtils.memoize(() ->
+ Daemon.newBuilder()
+ .setName("JvmPauseMonitor" +
THREAD_COUNT.getAndIncrement()).setRunnable(this::run).build());
Review Comment:
a single line makes 121 chars LOL. I formatted this a little bit more :)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]