fix(lifecycle): exit when startup is interrupted (#4420)

The InterruptedException branch in onHttpStart restored the interrupt
flag and logged, but never called Quarkus.asyncExit() like the other
startup failure branch does. An interrupted startup hook left the
process half-started instead of exiting.
This commit is contained in:
Niels Kootstra authored and GitHub committed 2026-09-25 15:09:53 -04:00
1 parent 444e9e8d6a
commit 26eafba246
2 files changed
+26

No files matched your search

@@ -284,6 +284,7 @@ public class EmulatorLifecycle {
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOG.error("Startup hook execution interrupted — shutting down", e);
Quarkus.asyncExit();
} catch (Exception e) {
LOG.error("Startup hook execution failed — shutting down", e);
Quarkus.asyncExit();