YARN-9657. AbstractLivelinessMonitor add serviceName to PingChecker thread. Contributed by Bilwa S T.

This commit is contained in:
Abhishek Modi 2019-08-11 15:41:56 +05:30
parent 1c5b28659f
commit cf5d8957ee
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public abstract class AbstractLivelinessMonitor<O> extends AbstractService {
assert !stopped : "starting when already stopped"; assert !stopped : "starting when already stopped";
resetTimer(); resetTimer();
checkerThread = new Thread(new PingChecker()); checkerThread = new Thread(new PingChecker());
checkerThread.setName("Ping Checker"); checkerThread.setName("Ping Checker for "+getName());
checkerThread.start(); checkerThread.start();
super.serviceStart(); super.serviceStart();
} }