Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 AA83BFF82 for ; Wed, 24 Apr 2013 17:45:16 +0000 (UTC) Received: (qmail 1252 invoked by uid 500); 24 Apr 2013 17:45:16 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 1212 invoked by uid 500); 24 Apr 2013 17:45:16 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 1202 invoked by uid 99); 24 Apr 2013 17:45:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 17:45:16 +0000 Date: Wed, 24 Apr 2013 17:45:16 +0000 (UTC) From: "Arun C Murthy (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-4737) Hadoop does not close output file / does not call Mapper.cleanup if exception in map 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/MAPREDUCE-4737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arun C Murthy updated MAPREDUCE-4737: ------------------------------------- Resolution: Fixed Fix Version/s: 2.0.5-beta 1-win 1.2.0 Release Note: Ensure that mapreduce APIs are semantically consistent with mapred API w.r.t Mapper.cleanup and Reducer.cleanup; in the sense that cleanup is now called even if there is an error. The old mapred API already ensures that Mapper.close and Reducer.close are invoked during error handling. Note that it is an incompatible change, however end-users can override Mapper.run and Reducer.run to get the old (inconsistent) behaviour. Hadoop Flags: Incompatible change,Reviewed Status: Resolved (was: Patch Available) I just committed this. Thanks [~cnauroth] & [~tomwhite] for the reviews! > Hadoop does not close output file / does not call Mapper.cleanup if exception in map > ------------------------------------------------------------------------------------- > > Key: MAPREDUCE-4737 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4737 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 1-win, 2.0.3-alpha, 1.1.2 > Reporter: Daniel Dai > Assignee: Arun C Murthy > Fix For: 1.2.0, 1-win, 2.0.5-beta > > Attachments: HADOOP-23-2.patch, HADOOP-8904-1.patch, MAPREDUCE-4737_branch1.patch, MAPREDUCE-4737_branch1.patch, MAPREDUCE-4737.patch, MAPREDUCE-4737.patch, MAPREDUCE-4737.patch > > > Find this in Pig unit test TestStore under Windows. There are dangling files because map does not close the file when exception happens in map(). In Windows, Hadoop will not remove a file if it is not closed. This happens in reduce() as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira