Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FAE87E4E for ; Fri, 2 Sep 2011 22:10:32 +0000 (UTC) Received: (qmail 61678 invoked by uid 500); 2 Sep 2011 22:10:32 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 61376 invoked by uid 500); 2 Sep 2011 22:10:31 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 61360 invoked by uid 99); 2 Sep 2011 22:10:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 22:10:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 22:10:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3F1CA4C13A for ; Fri, 2 Sep 2011 22:10:10 +0000 (UTC) Date: Fri, 2 Sep 2011 22:10:10 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1014190081.12964.1315001410254.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1118) DFSOutputStream socket leak when cannot connect to DataNode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096362#comment-13096362 ] Suresh Srinivas commented on HDFS-1118: --------------------------------------- I have committed the patch to 0.20-security branch. > 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, 0.20-append, 0.21.0 > Reporter: Zheng Shao > Assignee: Zheng Shao > Fix For: 0.20-append, 0.20.205.0, 0.22.0 > > Attachments: HDFS-1118.1.patch, HDFS-1118.2.patch, hdfs-1118.20s.patch, trunkPatch.txt > > > 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. For more information on JIRA, see: http://www.atlassian.com/software/jira