Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 0A97510849 for ; Wed, 10 Dec 2014 15:55:17 +0000 (UTC) Received: (qmail 63256 invoked by uid 500); 10 Dec 2014 15:55:16 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 63220 invoked by uid 500); 10 Dec 2014 15:55:16 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 63207 invoked by uid 99); 10 Dec 2014 15:55:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 15:55:16 +0000 Date: Wed, 10 Dec 2014 15:55:16 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-11349) RawLocalFileSystem leaks file descriptor while creating a file if creat succeeds but chmod fails. 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/HADOOP-11349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241280#comment-14241280 ] Hudson commented on HADOOP-11349: --------------------------------- FAILURE: Integrated in Hadoop-Mapreduce-trunk #1988 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1988/]) HADOOP-11349. RawLocalFileSystem leaks file descriptor while creating a file if creat succeeds but chmod fails. (Varun Saxena via Colin P. McCabe) (cmccabe: rev 03867eb1bb173c66b5eb3bebf2fe03a1188635b5) * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java * hadoop-common-project/hadoop-common/CHANGES.txt > RawLocalFileSystem leaks file descriptor while creating a file if creat succeeds but chmod fails. > ------------------------------------------------------------------------------------------------- > > Key: HADOOP-11349 > URL: https://issues.apache.org/jira/browse/HADOOP-11349 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.6.0 > Reporter: Chris Nauroth > Assignee: Varun Saxena > Priority: Minor > Fix For: 2.7.0 > > Attachments: HADOOP-11349.002.patch, HADOOP-11349.003.patch, HADOOP-11349.004.patch, HADOOP-11349.005.patch, HADOOP-11349.patch > > > {{RawLocalFileSystem}} currently implements some file creation operations as a sequence of 2 syscalls: create the file, followed by setting its permissions. If creation succeeds, but then setting permission causes an exception to be thrown, then there is no attempt to close the previously opened file, resulting in a file descriptor leak. -- This message was sent by Atlassian JIRA (v6.3.4#6332)