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 f59f8d3d123 HDDS-17516. Wait for Recon to pick up new container in
TestReconAndAdminContainerCLI (#11814)
f59f8d3d123 is described below
commit f59f8d3d123f2e32262388abcceb5b4490d1b81e
Author: Siyao Meng <[email protected]>
AuthorDate: Wed Oct 28 03:10:36 2026 -0700
HDDS-17516. Wait for Recon to pick up new container in
TestReconAndAdminContainerCLI (#11814)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../apache/hadoop/ozone/recon/TestReconAndAdminContainerCLI.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/TestReconAndAdminContainerCLI.java
b/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAndAdminContainerCLI.java
index 7df8abc61a2..caeb8df99e9 100644
---
a/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAndAdminContainerCLI.java
+++
b/hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconAndAdminContainerCLI.java
@@ -410,9 +410,9 @@ private static long setupRatisKey(ReconService
reconService, String keyName,
assertEquals(1, containerIDs.size());
long containerID = containerIDs.get(0);
- // Verify Recon picked up the new container.
- 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);
ReconContainerMetadataManager reconContainerMetadataManager =
reconService.getReconServer().getReconContainerMetadataManager();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]