hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masatake Iwasaki (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12602) TestMetricsSystemImpl#testQSize occasionally fail
Date Thu, 26 Nov 2015 20:54:10 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-12602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Masatake Iwasaki updated HADOOP-12602:
--------------------------------------
    Status: Patch Available  (was: Open)

> TestMetricsSystemImpl#testQSize occasionally fail
> -------------------------------------------------
>
>                 Key: HADOOP-12602
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12602
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Masatake Iwasaki
>         Attachments: HADOOP-12602.001.patch
>
>
> I have seen this test failed a few times in the past.
> Error Message
> {noformat}
> metricsSink.putMetrics(<Capturing argument>);
> Wanted 2 times:
> -> at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testQSize(TestMetricsSystemImpl.java:472)
> But was 1 time:
> -> at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:183)
> {noformat}
> Stacktrace
> {noformat}
> org.mockito.exceptions.verification.TooLittleActualInvocations: 
> metricsSink.putMetrics(<Capturing argument>);
> Wanted 2 times:
> -> at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testQSize(TestMetricsSystemImpl.java:472)
> But was 1 time:
> -> at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.consume(MetricsSinkAdapter.java:183)
> 	at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testQSize(TestMetricsSystemImpl.java:472)
> {noformat}
> Standard Output
> {noformat}
> 2015-11-25 19:07:49,867 INFO  impl.MetricsConfig (MetricsConfig.java:loadFirst(115))
- loaded properties from hadoop-metrics2-test.properties
> 2015-11-25 19:07:49,932 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:startTimer(374))
- Scheduled snapshot period at 10 second(s).
> 2015-11-25 19:07:49,932 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:start(192))
- Test metrics system started
> 2015-11-25 19:07:50,134 INFO  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:start(203))
- Sink slowSink started
> 2015-11-25 19:07:50,135 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:registerSink(301))
- Registered sink slowSink
> 2015-11-25 19:07:50,135 INFO  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:start(203))
- Sink dataSink started
> 2015-11-25 19:07:50,136 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:registerSink(301))
- Registered sink dataSink
> 2015-11-25 19:07:50,746 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:stop(211))
- Stopping Test metrics system...
> 2015-11-25 19:07:50,747 INFO  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:publishMetricsFromQueue(140))
- slowSink thread interrupted.
> 2015-11-25 19:07:50,748 INFO  impl.MetricsSinkAdapter (MetricsSinkAdapter.java:publishMetricsFromQueue(140))
- dataSink thread interrupted.
> 2015-11-25 19:07:50,748 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:stop(217))
- Test metrics system stopped.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message