You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2023/04/04 14:58:58 UTC

[GitHub] [ozone] adoroszlai commented on a diff in pull request #4534: HDDS-8374. Fix Flaky Unit Test for TestContainerStateCounts in Recon

adoroszlai commented on code in PR #4534:
URL: https://github.com/apache/ozone/pull/4534#discussion_r1157387009


##########
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestContainerStateCounts.java:
##########
@@ -387,4 +397,20 @@ public void testDeletedContainerCount() throws Exception {
     Assertions.assertEquals(3, clusterStateResponse1.getOpenContainers());
   }
 
+  private void waitAndCheckConditionAfterHeartbeat(Callable<Boolean> check)
+      throws Exception {
+    // if container report is processed first, and pipeline does not exist
+    // then container is not added until the next container report is processed
+    StorageContainerDatanodeProtocolProtos.SCMHeartbeatRequestProto
+        heartbeatRequestProto =
+        StorageContainerDatanodeProtocolProtos.SCMHeartbeatRequestProto.newBuilder()

Review Comment:
   ```
   hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/api/TestContainerStateCounts.java
    406: Line is longer than 80 characters (found 84).
   ```



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