milleruntime commented on issue #2327:
URL: https://github.com/apache/accumulo/issues/2327#issuecomment-953197378


   One solution would be to modify `CleanUp.shutdownNow()` to take a Connector 
object and close the client resources:
   <pre>
   public static void shutdownNow(Connector conn) {
       SingletonManager.setMode(Mode.CLIENT);
       waitForZooKeeperClientThreads();
       ConnectorImpl connImpl = (ConnectorImpl) conn;
       connImpl.getAccumuloClient().close();
     }
   </pre>
   This will break previous usage of `CleanUp.shutdownNow()` which might be OK 
since it would force usage. But it could be an issue for users that call the 
method who don't have a `Connector` object available.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to