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

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

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

Attila Doroszlai resolved HDDS-3121.
------------------------------------
    Fix Version/s: 0.6.0
       Resolution: Fixed

> 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
>             Fix For: 0.6.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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