This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new f650a22f3e3 HDDS-16875. Fix intermittent failure in 
TestCloseContainer#testCloseClosedContainer (#11470)
f650a22f3e3 is described below

commit f650a22f3e3aa7fbdbd1123e0e17f81f7ed00227
Author: Siyao Meng <[email protected]>
AuthorDate: Sun Oct 11 07:15:19 2026 -0700

    HDDS-16875. Fix intermittent failure in 
TestCloseContainer#testCloseClosedContainer (#11470)
    
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
 .../test/java/org/apache/hadoop/hdds/scm/TestCloseContainer.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestCloseContainer.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestCloseContainer.java
index a3383a7a26d..ee1b92b10e7 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestCloseContainer.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestCloseContainer.java
@@ -199,9 +199,9 @@ public void testCloseClosedContainer()
       GenericTestUtils.waitFor(() -> containerChecksumFileExists(hddsDatanode, 
container.getContainerID()), 100, 5000);
     }
 
-    for (ContainerReplica replica : getContainerReplicas(container)) {
-      assertNotEquals(0, replica.getDataChecksum());
-    }
+    // Wait for SCM to receive container reports with non-zero checksums for 
all replicas
+    GenericTestUtils.waitFor(() -> getContainerReplicas(container).stream()
+        .allMatch(r -> r.getDataChecksum() != 0), 200, 5000);
 
     assertThrows(IOException.class,
         () -> cluster.getStorageContainerLocationClient()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to