hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-1118) DFSOutputStream socket leak when cannot connect to DataNode
Date Thu, 29 Apr 2010 00:37:51 GMT

     [ https://issues.apache.org/jira/browse/HDFS-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Zheng Shao updated HDFS-1118:

    Attachment: HDFS-1118.1.patch

This patch does not have a unit test yet. Not sure what is the best way to write one for this.

> 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.1, 0.20.2
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HDFS-1118.1.patch
> 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.

View raw message