Return-Path: Delivered-To: apmail-incubator-chukwa-dev-archive@www.apache.org Received: (qmail 67517 invoked from network); 2 Jan 2011 05:38:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jan 2011 05:38:07 -0000 Received: (qmail 92398 invoked by uid 500); 2 Jan 2011 05:38:07 -0000 Delivered-To: apmail-incubator-chukwa-dev-archive@incubator.apache.org Received: (qmail 92320 invoked by uid 500); 2 Jan 2011 05:38:06 -0000 Mailing-List: contact chukwa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@incubator.apache.org Delivered-To: mailing list chukwa-dev@incubator.apache.org Received: (qmail 92312 invoked by uid 99); 2 Jan 2011 05:38:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 05:38:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 05:38:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p025bj2g011844 for ; Sun, 2 Jan 2011 05:37:45 GMT Message-ID: <23061358.95211293946665219.JavaMail.jira@thor> Date: Sun, 2 Jan 2011 00:37:45 -0500 (EST) From: "Eric Yang (JIRA)" To: chukwa-dev@incubator.apache.org Subject: [jira] Updated: (CHUKWA-574) Multiple metrics emite at the same time causes logger to print corrupted metrics In-Reply-To: <30057648.75671293749746286.JavaMail.jira@thor> 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/CHUKWA-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Yang updated CHUKWA-574: ----------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Thanks Ari, I just committed this. > Multiple metrics emite at the same time causes logger to print corrupted metrics > -------------------------------------------------------------------------------- > > Key: CHUKWA-574 > URL: https://issues.apache.org/jira/browse/CHUKWA-574 > Project: Chukwa > Issue Type: Bug > Components: input tools > Environment: Java 6, Mac OS X 10.6 > Reporter: Eric Yang > Assignee: Eric Yang > Fix For: 0.5.0 > > Attachments: CHUKWA-574.patch > > > Log4JMetricsContext only has synchronized locks to initialize the logger. When they are multiple threads trying to emite metrics, there is a slight possibility that the output of multiple metrics written as one log entry. Synchronized locks should apply for the whole emiteRecord method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.