mirror of https://github.com/apache/druid.git
Merge pull request #1627 from metamx/fix-realtime-tasks
explicitly call lifecycle stop
This commit is contained in:
commit
8d6fe021e3
|
@ -223,6 +223,8 @@ public class CliPeon extends GuiceRunnable
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
injector.getInstance(ExecutorLifecycle.class).join();
|
injector.getInstance(ExecutorLifecycle.class).join();
|
||||||
|
// Explicitly call lifecycle stop, dont rely on shutdown hook.
|
||||||
|
lifecycle.stop();
|
||||||
}
|
}
|
||||||
catch (Throwable t) {
|
catch (Throwable t) {
|
||||||
log.error(t, "Error when starting up. Failing.");
|
log.error(t, "Error when starting up. Failing.");
|
||||||
|
|
Loading…
Reference in New Issue