You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/02/24 23:06:07 UTC

[GitHub] [ozone] symious commented on a change in pull request #3135: HDDS-6374. Fix incorrect queueTime metrics of ReplicationTask

symious commented on a change in pull request #3135:
URL: https://github.com/apache/ozone/pull/3135#discussion_r814345871



##########
File path: hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/replication/TestMeasuredReplicator.java
##########
@@ -119,4 +119,16 @@ public void testSuccessTimeFailureExcluded() {
     Assert.assertEquals(0, measuredReplicator.getSuccessTime().value());
   }
 
+  @Test
+  public void testReplicationQueueTimeMetrics() {
+    ReplicationTask task = new ReplicationTask(100L, new ArrayList<>());
+    try {
+      Thread.sleep(1000L);
+    } catch (InterruptedException e) {
+      e.printStackTrace();
+    }

Review comment:
       Thanks for the advice. Updated the commit, please have a check.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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