[ https://issues.apache.org/jira/browse/PHOENIX-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth updated PHOENIX-7223: --------------------------------- Summary: Make Sure Tools Always Close HBase Connections on Exit (was: Explicitly Close Connections in Tools) > Make Sure Tools Always Close HBase Connections on Exit > ------------------------------------------------------ > > Key: PHOENIX-7223 > URL: https://issues.apache.org/jira/browse/PHOENIX-7223 > Project: Phoenix > Issue Type: Bug > Components: core > Affects Versions: 5.2.0, 5.1.4 > Reporter: Istvan Toth > Assignee: Istvan Toth > Priority: Minor > > When using the Netty connection implementation in ZooKeeper the JVM hangs on > exit if the ZK Connection is not shut down explicitly. > While this should be fixed in some future ZK version, -we can fix it short > term- by doing the right thing, and not leaving Connections open when exiting. > While this is fine as a general cleanup, it doesn't solve the ZK hang issue, > as the HBase Connections are kept open in the cached CQSI objects. > Update 2: > The actual problem is that we throw an exception from the Tool's main thread, > which causes an ungraceful shutdown. > If we catch the error, and return a non-zero exit code, then the JVM will > shut down normall, and the shutdown hook will close the CQSI objects. -- This message was sent by Atlassian Jira (v8.20.10#820010)