Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7570

DataXceiver could leak FileDescriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

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

      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);
            }
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jyu@cloudera.com Juan Yu
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: