You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Nandakumar (JIRA)" <ji...@apache.org> on 2017/06/27 19:52:00 UTC
[jira] [Updated] (HDFS-12050) Ozone: StorageHandler: Implementation
of "close" for releasing resources during shutdown
[ https://issues.apache.org/jira/browse/HDFS-12050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nandakumar updated HDFS-12050:
------------------------------
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.
was:
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 close the connections during shutdown.
> Ozone: StorageHandler: Implementation of "close" for releasing resources during shutdown
> ----------------------------------------------------------------------------------------
>
> Key: HDFS-12050
> URL: https://issues.apache.org/jira/browse/HDFS-12050
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Nandakumar
> Assignee: Nandakumar
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org