You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/06 00:38:00 UTC

[jira] [Updated] (HDDS-3121) Fix TestSCMPipelineBytesWrittenMetrics

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

ASF GitHub Bot updated HDDS-3121:
---------------------------------
    Labels: pull-request-available  (was: )

> Fix TestSCMPipelineBytesWrittenMetrics
> --------------------------------------
>
>                 Key: HDDS-3121
>                 URL: https://issues.apache.org/jira/browse/HDDS-3121
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>
> In the test, we have Thread.sleep and then check the metric value. It will be better to use GenerictestUtils.waitFor and check the value of the metric. In few of the runs we have seen this test failed.
> {code:java}
> Thread.sleep(100 * 1000L);
> metrics =
>  getMetrics(SCMPipelineMetrics.class.getSimpleName());
> for (Pipeline pipeline : cluster.getStorageContainerManager()
>  .getPipelineManager().getPipelines()) {
>  Assert.assertEquals(bytesWritten, getLongCounter(
>  SCMPipelineMetrics.getBytesWrittenMetricName(pipeline), metrics));
> }{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org