mirror of https://github.com/apache/druid.git
TaskMasterLifecycle: Less noisy exit when interrupted
This commit is contained in:
parent
5f513be363
commit
b5e7bff927
|
@ -109,12 +109,16 @@ public class TaskMasterLifecycle
|
|||
try {
|
||||
leaderLifecycle.start();
|
||||
|
||||
while (leading) {
|
||||
while (leading && !Thread.currentThread().isInterrupted()) {
|
||||
mayBeStopped.await();
|
||||
}
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
// Suppress so we can bow out gracefully
|
||||
}
|
||||
finally {
|
||||
log.info("Bowing out!");
|
||||
stopLeading();
|
||||
leaderLifecycle.stop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue