hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10408) TestMetricsSystemImpl fails occasionally
Date Thu, 13 Mar 2014 19:39:43 GMT

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

Arpit Agarwal commented on HADOOP-10408:
----------------------------------------

Occasionally the test will fail with the following exception.
{code}
java.lang.AssertionError: expected:<0> but was:<2>
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.failNotEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:128)
	at org.junit.Assert.assertEquals(Assert.java:472)
	at org.junit.Assert.assertEquals(Assert.java:456)
	at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testMultiThreadedPublish(TestMetricsSystemImpl.java:232)
{code}

At other times the exception looks as follows:
{code}
testMultiThreadedPublish(org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl)  Time elapsed:
0.468 sec  <<< FAILURE!
java.lang.AssertionError: Metric not collected!
Passed
Passed
Passed
Passed
Passed
Passed
Passed
Passed
Passed
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testMultiThreadedPublish(TestMetricsSystemImpl.java:233)
{code}

Log message showing dropped events:
{code}
2014-03-12 21:08:17,236 WARN  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:putMetricsImmediate(107))
- Collector has a full queue and can't consume the given metrics.
2014-03-12 21:08:17,237 WARN  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:putMetricsImmediate(107))
- Collector has a full queue and can't consume the given metrics.
{code}

> TestMetricsSystemImpl fails occasionally
> ----------------------------------------
>
>                 Key: HADOOP-10408
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10408
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Arpit Agarwal
>
> {{TestMetricsSystemImpl#testMultiThreadedPublish}} fails occasionally due to dropped
events. Exception details in comment below.
> Running the test in a loop on an Ubuntu VM results in a failure after ~20 iterations,
however it repros almost daily in our automated test runs.



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

Mime
View raw message