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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to