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 4A7317D21 for ; Fri, 19 Aug 2011 04:12:09 +0000 (UTC) Received: (qmail 80966 invoked by uid 500); 19 Aug 2011 04:12:07 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 80839 invoked by uid 500); 19 Aug 2011 04:11:57 -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 80826 invoked by uid 99); 19 Aug 2011 04:11:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 04:11:52 +0000 X-ASF-Spam-Status: No, hits=-2001.1 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, 19 Aug 2011 04:11:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BCA26C3C14 for ; Fri, 19 Aug 2011 04:11:28 +0000 (UTC) Date: Fri, 19 Aug 2011 04:11:28 +0000 (UTC) From: "Aaron Morton (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1008532653.51880.1313727088769.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2008763719.51750.1313723309929.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7556) TaskLogAppender does not check if closed before flushing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron Morton updated HADOOP-7556: --------------------------------- Status: Patch Available (was: Open) > TaskLogAppender does not check if closed before flushing > -------------------------------------------------------- > > Key: HADOOP-7556 > URL: https://issues.apache.org/jira/browse/HADOOP-7556 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.20.203.0 > Reporter: Aaron Morton > Priority: Minor > Attachments: HADDOP-7556.diff > > > For background see http://groups.google.com/group/brisk-users/browse_thread/thread/3a18f4679673bea8 > http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201108.mbox/%3C4E370C97-1541-4FDA-8456-1067DDDC4D77@thelastpickle.com%3E > Cassandra is using a log4j PropertyConfigurator which is closing all existing appenders. After a task has completed the TaskLogAppender.flush() is called and it tries to flush without checking if the writer has been closed. I'll upload a patch to check if the writer is closed, and log and silently fail if it is. > The real problem is the log4j config collision, we're looking to different log4j LoggerRepositories for that. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira