Istvan Toth created ZOOKEEPER-4804: -------------------------------------- Summary: Use daemon threads for Netty client Key: ZOOKEEPER-4804 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4804 Project: ZooKeeper Issue Type: Bug Affects Versions: 3.8.3 Reporter: Istvan Toth
When the Netty client is used, the Java process hangs on System.exit if there is an open Zookeeper connection. This is caused by the non-daemon threads created by Netty. Exiting without closing the connection is not a good practice, but this hang does not happen with the NIO client, and I think ZK should behave the same regardless of the client implementation used. The Netty ThreadFactory implementation is configurable, it shouldn't be too hard make sure that daemon threads are created. -- This message was sent by Atlassian Jira (v8.20.10#820010)