Closed rsvoboda closed 3 years ago
Hi thanks for reporting this.
The driver itself responds nicely to interrupts, but indeed the Quarkus extension does not. I tried to look for obvious culprits (catch InterruptedException, etc. ) but couldn't spot anything.
I agree that the user experience is bad. I tried the mongo db sample for code.quarkus.io and it seems the mongodb-client is only initialized on demand, and as a result no actual connection is made. And obviously the mvn command stops when I hit CTRL+C.
OK I found the cause. There was something broken with eager session initialization. I will open a PR with a few changes:
Simple bootstrapped application with Cassandra client extension can't be stopped using
Ctrl+C
,kill -9
was needed. Tried with Quarkus 1.11.0.Final in dev mode and when runningjava -jar target/....
. To build the jar I had to skip the tests. The out of the box experience is not ideal.Reproducer:
Example with
java -jar target/....
, see^C
attempts to stop the app:┆Issue is synchronized with this Jira Task by Unito