-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
When CTRL+C'ing a Quarkus app, the following stacktrace appears in the console:
^C2019-09-18 18:07:28,429 ERROR [io.qua.run.StartupContext] (main) Running a shutdown task failed: java.lang.IllegalStateException: Shutdown in progress
at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
at java.lang.Runtime.addShutdownHook(Runtime.java:211)
at io.vertx.core.file.impl.FileResolver.setupCacheDir(FileResolver.java:351)
at io.vertx.core.file.impl.FileResolver.<init>(FileResolver.java:87)
at io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:165)
at io.vertx.core.impl.VertxImpl.vertx(VertxImpl.java:92)
at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:40)
at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:32)
at io.vertx.core.Vertx.vertx(Vertx.java:85)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder.initialize(VertxCoreRecorder.java:133)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$1.get(VertxCoreRecorder.java:52)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$1.get(VertxCoreRecorder.java:45)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder.destroy(VertxCoreRecorder.java:168)
at io.quarkus.vertx.core.runtime.VertxCoreRecorder$2.run(VertxCoreRecorder.java:64)
at io.quarkus.runtime.StartupContext.close(StartupContext.java:43)
at io.quarkus.runner.ApplicationImpl1.doStop(ApplicationImpl1.zig:172)
at io.quarkus.runtime.Application.stop(Application.java:158)
at io.quarkus.runtime.Application.run(Application.java:211)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)
Expected behavior
No stacktrace
Actual behavior
Shows stacktrace
To Reproduce
Steps to reproduce the behavior:
- Any Quarkus app running latest master
- Press Ctrl +C
- Stacktrace is shown
Environment (please complete the following information):
-
Output of
uname -a
orver
: Linux ggastald-laptop 5.2.13-200.fc30.x86_64 Switch to the Maven distributed copy of the SubstrateVM annotations #1 SMP Fri Sep 6 14:30:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux -
Output of
java -version
:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode) -
GraalVM version (if different from Java):
-
Quarkus version or git rev: bf24401
Additional context
(Add any other context about the problem here.)
Doesn't happen with 0.22.0