Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ public static CompletableFuture<Void> startComponent(LifecycleComponent componen
component.getName(), t, e);
System.err.println(e.getMessage());
// start the shutdown hook when an uncaught exception happen in the lifecycle component.
shutdownHookThread.start();
try {
shutdownHookThread.start();
} catch (IllegalThreadStateException ise) {
// the shutdown hook thread is already running (e.g. triggered by a prior
// exception or by the JVM shutdown sequence), so there is nothing else to do.
}
});

component.publishInfo(new ComponentInfoPublisher());
Expand Down
Loading