mirror of
https://github.com/apache/druid.git
synced 2025-03-02 07:19:14 +00:00
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…
x
Reference in New Issue
Block a user