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

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

Bharat Viswanadham created HDDS-3121:
----------------------------------------

             Summary: 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


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