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 "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/04/29 02:19:50 UTC

[jira] Created: (HDFS-1118) DFSOutputStream socket leak when cannot connect to DataNode

DFSOutputStream socket leak when cannot connect to DataNode
-----------------------------------------------------------

                 Key: HDFS-1118
                 URL: https://issues.apache.org/jira/browse/HDFS-1118
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 0.20.2, 0.20.1
            Reporter: Zheng Shao
            Assignee: Zheng Shao


The offending code is in {{DFSOutputStream.nextBlockOutputStream}}

This function retries several times to call {{createBlockOutputStream}}. Each time when it fails, it leaves a {{Socket}} object in {{DFSOutputStream.s}}.
That object is never closed, but overwritten the next time {{createBlockOutputStream}} is called.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.