You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Overridepublicvoidshutdown() throwsArangoDBException {
try {
executor.disconnect();
cp.close(); // <---- This is not called when the previous method throws an exception !!!
} catch (finalIOExceptione) {
thrownewArangoDBException(e);
}
}
When an exception is thrown from the executor.disconnect() (for instance 401 - unauthorized) the CommunicationProtocol.close() isn't called and thus all the associated with it resources (apparently including thread pools or such) remain unclosed. This leads to the client app being unable to exit normally.
AN easy workaround is to call shutdown() in a try-catch block and repeat the call on ArangoDBException like this:
When an exception is thrown from the
executor.disconnect()
(for instance401 - unauthorized
) theCommunicationProtocol.close()
isn't called and thus all the associated with it resources (apparently including thread pools or such) remain unclosed. This leads to the client app being unable to exit normally.AN easy workaround is to call
shutdown()
in a try-catch block and repeat the call onArangoDBException
like this:It would be good however, to handle exceptions internally in the driver and do a proper cleanup.
The text was updated successfully, but these errors were encountered: