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

smengcl 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 76612a4da75 HDDS-16843. Intermittent failure in 
testLeaderOmProxyProviderFailoverOnConnectionFailure (#11463)
76612a4da75 is described below

commit 76612a4da7523e4c3cd4f50c1aaba5fdde91b117
Author: Siyao Meng <[email protected]>
AuthorDate: Sun Oct 11 14:48:13 2026 -0700

    HDDS-16843. Intermittent failure in 
testLeaderOmProxyProviderFailoverOnConnectionFailure (#11463)
    
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
 .../ozone/om/TestOzoneManagerHAFollowerReadWithStoppedNodes.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHAFollowerReadWithStoppedNodes.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHAFollowerReadWithStoppedNodes.java
index 7fd0e7f578a..3a144730ad6 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHAFollowerReadWithStoppedNodes.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerHAFollowerReadWithStoppedNodes.java
@@ -212,13 +212,14 @@ void 
testLeaderOmProxyProviderFailoverOnConnectionFailure() throws Exception {
     ObjectStore objectStore = getObjectStore();
     HadoopRpcOMFailoverProxyProvider<OzoneManagerProtocolPB> 
omFailoverProxyProvider =
         OmTestUtil.getFailoverProxyProvider(objectStore);
-    String firstProxyNodeId = 
omFailoverProxyProvider.getCurrentProxyOMNodeId();
 
     createVolumeTest(true);
+    String firstProxyNodeId = 
omFailoverProxyProvider.getCurrentProxyOMNodeId();
 
     // On stopping the current OM Proxy, the next connection attempt should
     // failover to a another OM proxy.
     getCluster().stopOzoneManager(firstProxyNodeId);
+    waitForLeaderToBeReady();
 
     // Next request to the proxy provider should result in a failover
     createVolumeTest(true);


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

Reply via email to