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 "Juan Yu (JIRA)" <ji...@apache.org> on 2014/12/24 21:29:13 UTC

[jira] [Created] (HDFS-7570) DataXceiver could leak FileDescriptor

Juan Yu created HDFS-7570:
-----------------------------

             Summary: DataXceiver could leak FileDescriptor
                 Key: HDFS-7570
                 URL: https://issues.apache.org/jira/browse/HDFS-7570
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Juan Yu


DataXceiver doesn't close inputstream all the time, There could be FD leakage and overtime cause FDs exceed limit.

{code}
finally {
      if (LOG.isDebugEnabled()) {
        LOG.debug(datanode.getDisplayName() + ":Number of active connections is: "
            + datanode.getXceiverCount());
      }
      updateCurrentThreadName("Cleaning up");
      if (peer != null) {
        dataXceiverServer.closePeer(peer);
        IOUtils.closeStream(in);
      }
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)