jbvanzuylen opened a new pull request #2770: Java Client - Threads to inherit daemon status from thread creating the client URL: https://github.com/apache/pulsar/pull/2770 ### Motivation Currently all threads started by the Java client are always non-daemon threads. This might be a problem in situations where there is no other way of calling `PulsarClient.close()` than using a shutdown hook when halting the JVM. Shutdown hooks are only executed by the JVM when all non-daemon threads are stopped and currently the non-daemon threads from Pulsar are getting in the way. ### Modifications Threads spawned by the Pulsar client will now inherit the daemon status of the thread creating the client. ### Result If the Pulsar client is started using a non-daemon thread, the threads spawned by Pulsar will also be non-daemon threads.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services