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 E757A6596 for ; Wed, 22 Jun 2011 21:43:14 +0000 (UTC) Received: (qmail 37139 invoked by uid 500); 22 Jun 2011 21:43:14 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 37060 invoked by uid 500); 22 Jun 2011 21:43:14 -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 37052 invoked by uid 99); 22 Jun 2011 21:43:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 21:43:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 22 Jun 2011 21:43:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AEFC24290A5 for ; Wed, 22 Jun 2011 21:42:53 +0000 (UTC) Date: Wed, 22 Jun 2011 21:42:53 +0000 (UTC) From: "Aaron Baff (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1107204067.30513.1308778973713.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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:all-tabpanel ] Aaron Baff updated HDFS-1118: ----------------------------- Affects Version/s: 0.21.0 This bug also affects version 0.21.0 > 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.22.0 > > Attachments: HDFS-1118.1.patch, HDFS-1118.2.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