[ 
https://issues.apache.org/jira/browse/HADOOP-10468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059290#comment-14059290
 ] 

Jason Lowe commented on HADOOP-10468:
-------------------------------------

Thanks for the patch [~ajisakaa]!  It looks OK to me, although I hesitate to 
commit it since the original change by [~wheat9] was to not fix the test but 
change the behavior of the metrics system in an incompatible way.  I'm 
wondering if there's something subtle we're missing that would reappear if we 
reverted the original fix, so I'm hoping to hear from Haohui on what he thinks 
of the change.

My preference would be to just fix the test if that's sufficient since it 
retains the semantic behavior.  However if we really need to remove the 
lowercase call as in the original patch then I think we should also change the 
places where we register metrics to register them with lowercase strings.  That 
would retain compatibility with existing metrics properties configuration files.

> TestMetricsSystemImpl.testMultiThreadedPublish fails intermediately
> -------------------------------------------------------------------
>
>                 Key: HADOOP-10468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10468
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>            Priority: Blocker
>         Attachments: HADOOP-10468.000.patch, HADOOP-10468.001.patch, 
> HADOOP-10468.2.patch
>
>
> {{TestMetricsSystemImpl.testMultiThreadedPublish}} can fail intermediately 
> due to the insufficient size of the sink queue:
> {code}
> 2014-04-06 21:34:55,269 WARN  impl.MetricsSinkAdapter 
> (MetricsSinkAdapter.java:putMetricsImmediate(107)) - Collector has a full 
> queue and can't consume the given metrics.
> 2014-04-06 21:34:55,270 WARN  impl.MetricsSinkAdapter 
> (MetricsSinkAdapter.java:putMetricsImmediate(107)) - Collector has a full 
> queue and can't consume the given metrics.
> 2014-04-06 21:34:55,271 WARN  impl.MetricsSinkAdapter 
> (MetricsSinkAdapter.java:putMetricsImmediate(107)) - Collector has a full 
> queue and can't consume the given metrics.
> {code}
> The unit test should increase the default queue size to avoid intermediate 
> failure.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to