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 "Hudson (JIRA)" <ji...@apache.org> on 2018/04/24 20:54:06 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16450876#comment-16450876 ]
Hudson commented on HDFS-12050:
-------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14057 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/14057/])
HDFS-12050. Ozone: StorageHandler: Implementation of close for releasing (cliang: rev ba647764f3bccc318956b24104f972f4c9b0d35d)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/interfaces/StorageHandler.java
* (edit) hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/scm/XceiverClientManager.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ObjectStoreHandler.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/storage/DistributedStorageHandler.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/web/localstorage/LocalStorageHandler.java
> 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: Nanda kumar
> Assignee: Nanda kumar
> Priority: Minor
> Attachments: HDFS-12050-HDFS-7240.000.patch, HDFS-12050-HDFS-7240.001.patch
>
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org