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 9B43910E4A for ; Wed, 22 Jan 2014 21:19:29 +0000 (UTC) Received: (qmail 15493 invoked by uid 500); 22 Jan 2014 21:19:24 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 15354 invoked by uid 500); 22 Jan 2014 21:19:22 -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 15217 invoked by uid 99); 22 Jan 2014 21:19:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 21:19:22 +0000 Date: Wed, 22 Jan 2014 21:19:22 +0000 (UTC) From: "Jason Lowe (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-5723) MR AM container log truncated on normal execution or empty if exception occurs 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-5723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879192#comment-13879192 ] Jason Lowe commented on MAPREDUCE-5723: --------------------------------------- +1, lgtm as well. > MR AM container log truncated on normal execution or empty if exception occurs > ------------------------------------------------------------------------------ > > Key: MAPREDUCE-5723 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5723 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: applicationmaster > Affects Versions: 2.2.0 > Reporter: Mohammad Kamrul Islam > Assignee: Mohammad Kamrul Islam > Priority: Blocker > Attachments: MAPREDUCE-5723.1.patch, MAPREDUCE-5723.2.patch, MAPREDUCE-5723.3.patch, MAPREDUCE-5723.4.patch > > > It occurs when the property "mapreduce.task.userlog.limit.kb" is set non-zero in mapped-site.xml. > AM container syslog remains empty if any exception occurs. > Bug details: > In MRAppMaster.java, the following code snippets show the bug. > {code} > } catch (Throwable t) { > LOG.fatal("Error starting MRAppMaster", t); > System.exit(1); > }finally { > LogManager.shutdown(); > } > {code} > In the catch block, we are exiting the JVM. So finally block (therefore LogManager.shutdown()) is never executed. > Possible fix: > Make sure LogManager.shutdown() is executed in all cases. > -- This message was sent by Atlassian JIRA (v6.1.5#6160)