chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CHUKWA-574) Multiple metrics emite at the same time causes logger to print corrupted metrics
Date Sun, 02 Jan 2011 05:23:45 GMT

    [ https://issues.apache.org/jira/browse/CHUKWA-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976476#action_12976476
] 

Eric Yang commented on CHUKWA-574:
----------------------------------

Yes.  The log line was showing someting like:

2011-01-01 21:13:47,517 [main] INFO { ... 2011-01-01 21:14:47,517 [main] INFO { ... } }

After the patch, it seems to work correctly.

> 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.


Mime
View raw message