ritegarg commented on code in PR #2138: URL: https://github.com/apache/phoenix/pull/2138#discussion_r2087321294
########## phoenix-core-client/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java: ########## @@ -774,6 +822,20 @@ public void close() throws SQLException { } } + // Based on org.apache.hadoop.hbase.client.ConnectionImplementation + private void shutdownThreadPool(ThreadPoolExecutor pool) { + if (pool != null && !pool.isShutdown()) { + pool.shutdown(); + try { + if (!pool.awaitTermination(10, TimeUnit.SECONDS)) { Review Comment: The 10 sec wait is based on [ConnectionImplementation.java](https://git.soma.salesforce.com/bigdata-packaging/hbase/blob/2.5.10-sfdc-13/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java#L636) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org