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 e5953c9d926 HDDS-17612. Intermittent failure in TestReconAsPassiveScm 
(#11882)
e5953c9d926 is described below

commit e5953c9d926ccf294f6bb2dc0e4a9c4de372bc5b
Author: Siyao Meng <[email protected]>
AuthorDate: Sat Oct 31 14:45:10 2026 -0700

    HDDS-17612. Intermittent failure in TestReconAsPassiveScm (#11882)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../java/org/apache/hadoop/ozone/recon/TestReconAsPassiveScm.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAsPassiveScm.java
 
b/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAsPassiveScm.java
index ab60b072c75..d6a95431129 100644
--- 
a/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAsPassiveScm.java
+++ 
b/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAsPassiveScm.java
@@ -135,9 +135,9 @@ public void testDatanodeRegistrationAndReports() throws 
Exception {
     XceiverClientGrpc client = new XceiverClientGrpc(pipeline, conf);
     runTestOzoneContainerViaDataNode(containerID, client);
 
-    // Verify Recon picked up the new container that was created.
-    assertEquals(scmContainerManager.getContainers(),
-        reconContainerManager.getContainers());
+    // Wait for Recon to pick up the new container, the datanode reports it to 
Recon on the next Recon heartbeat.
+    GenericTestUtils.waitFor(() -> 
scmContainerManager.getContainers().equals(reconContainerManager.getContainers()),
+        100, 20000);
 
     LogCapturer logCapturer = LogCapturer.captureLogs(ReconNodeManager.class);
     GenericTestUtils.setLogLevel(ReconNodeManager.class, Level.DEBUG);


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

Reply via email to