Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
When we use DistributedStorageHandler and call newKeyWriter, it will create XceiverClientSpi and add it to clientCache which will create a non-daemon nioEventLoopGroup thread. Since XceiverClientManager#releaseClient doesn't invalidate the client, close is not called on the client object. Cleanup is triggered as part of both eviction as well as releaseClient, but the connection is closed only when both of the conditions are satisfied.
This StorageHandler#close can be used to close the connections during shutdown.