You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Mukul Kumar Singh (JIRA)" <ji...@apache.org> on 2017/05/26 02:47:04 UTC

[jira] [Created] (HDFS-11887) XceiverClientManager should close XceiverClient on eviction from cache

Mukul Kumar Singh created HDFS-11887:
----------------------------------------

             Summary: XceiverClientManager should close XceiverClient on eviction from cache
                 Key: HDFS-11887
                 URL: https://issues.apache.org/jira/browse/HDFS-11887
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: ozone
            Reporter: Mukul Kumar Singh
            Assignee: Mukul Kumar Singh


XceiverClientManager doesn't close client on eviction which can leak resources.

{code}
public XceiverClientManager(Configuration conf) {
.
.
.
            public void onRemoval(
                RemovalNotification<String, XceiverClientWithAccessInfo>
                  removalNotification) {
              // If the reference count is not 0, this xceiver client should not
              // be evicted, add it back to the cache.
              WithAccessInfo info = removalNotification.getValue();
              if (info.hasRefence()) {
                synchronized (XceiverClientManager.this.openClient) {
                  XceiverClientManager.this
                      .openClient.put(removalNotification.getKey(), info);
                }
              }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org