You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by si...@apache.org on 2026/10/22 06:47:16 UTC
(ozone) branch master updated: HDDS-17190. Intermittent failure in TestDecommissionAndMaintenance#testSingleNodeWithOpenPipelineCanGotoMaintenance (#11643)
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 2cd413d168d HDDS-17190. Intermittent failure in TestDecommissionAndMaintenance#testSingleNodeWithOpenPipelineCanGotoMaintenance (#11643)
2cd413d168d is described below
commit 2cd413d168df6439ac2303e2a52f8f6de5e84d29
Author: Siyao Meng <50...@users.noreply.github.com>
AuthorDate: Wed Oct 21 23:47:10 2026 -0700
HDDS-17190. Intermittent failure in TestDecommissionAndMaintenance#testSingleNodeWithOpenPipelineCanGotoMaintenance (#11643)
Co-authored-by: Claude Opus 5.5 <no...@anthropic.com>
---
.../hadoop/hdds/scm/node/TestDecommissionAndMaintenance.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestDecommissionAndMaintenance.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestDecommissionAndMaintenance.java
index d1322772cad..961389baa9d 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestDecommissionAndMaintenance.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestDecommissionAndMaintenance.java
@@ -242,10 +242,10 @@ public void testNodeWithOpenPipelineCanBeDecommissionedAndRecommissioned()
waitForContainerReplicas(ecContainer, 5);
cluster.restartHddsDatanode(dnIndex, true);
- scmClient.recommissionNodes(Arrays.asList(
- getDNHostAndPort(toDecommission)));
- waitForDnToReachOpState(nm, toDecommission, IN_SERVICE);
- waitForDnToReachPersistedOpState(toDecommission, IN_SERVICE);
+ DatanodeDetails newDn = nm.getNode(dnID);
+ scmClient.recommissionNodes(Arrays.asList(getDNHostAndPort(newDn)));
+ waitForDnToReachOpState(nm, newDn, IN_SERVICE);
+ waitForDnToReachPersistedOpState(newDn, IN_SERVICE);
}
@Test
@@ -487,7 +487,7 @@ public void testSingleNodeWithOpenPipelineCanGotoMaintenance()
// has, then the SCM state should be used and the DN state updated.
waitForDnToReachHealthState(nm, newDn, HEALTHY);
waitForDnToReachOpState(nm, newDn, IN_SERVICE);
- waitForDnToReachPersistedOpState(dn, IN_SERVICE);
+ waitForDnToReachPersistedOpState(newDn, IN_SERVICE);
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org