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 f13ea45dcfd HDDS-13972. Intermittent failure in 
testDatanodeExclusionWithMajorityCommit (#12122)
f13ea45dcfd is described below

commit f13ea45dcfd15087dee7d6adac4fe193d677ec1c
Author: Chi-Hsuan Huang <[email protected]>
AuthorDate: Sun Nov 22 20:02:14 2026 +0800

    HDDS-13972. Intermittent failure in testDatanodeExclusionWithMajorityCommit 
(#12122)
---
 .../hadoop/ozone/client/rpc/TestFailureHandlingByClient.java      | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
index 8484bd114b7..52979c2a1d1 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
@@ -48,6 +48,8 @@
 import org.apache.hadoop.hdds.scm.container.ContainerID;
 import org.apache.hadoop.hdds.scm.container.ContainerInfo;
 import org.apache.hadoop.hdds.scm.pipeline.Pipeline;
+import 
org.apache.hadoop.hdds.scm.pipeline.leader.choose.algorithms.DefaultLeaderChoosePolicy;
+import 
org.apache.hadoop.hdds.scm.pipeline.leader.choose.algorithms.LeaderChoosePolicy;
 import org.apache.hadoop.hdds.utils.IOUtils;
 import org.apache.hadoop.net.DNSToSwitchMapping;
 import org.apache.hadoop.net.NetUtils;
@@ -75,7 +77,6 @@
 import org.apache.hadoop.ozone.om.helpers.OmKeyInfo;
 import org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo;
 import org.apache.ozone.test.GenericTestUtils;
-import org.apache.ozone.test.tag.Flaky;
 import org.apache.ratis.proto.RaftProtos;
 import org.apache.ratis.protocol.RaftGroupId;
 import org.apache.ratis.server.RaftServer;
@@ -124,6 +125,10 @@ public void init() throws Exception {
         OzoneConfigKeys.OZONE_NETWORK_TOPOLOGY_AWARE_READ_KEY, true);
     conf.setInt(ScmConfigKeys.OZONE_DATANODE_PIPELINE_LIMIT, 2);
     conf.setInt(ScmConfigKeys.OZONE_SCM_RATIS_PIPELINE_LIMIT, 15);
+    // Keep all Ratis peers at the same priority, otherwise the leader keeps 
yielding to a restarted datanode
+    // that the next test stops again, and rejects writes meanwhile 
(RATIS-2830).
+    conf.setClass(ScmConfigKeys.OZONE_SCM_PIPELINE_LEADER_CHOOSING_POLICY,
+        DefaultLeaderChoosePolicy.class, LeaderChoosePolicy.class);
     DatanodeRatisServerConfig ratisServerConfig =
         conf.getObject(DatanodeRatisServerConfig.class);
     ratisServerConfig.setRequestTimeOut(Duration.ofSeconds(3));
@@ -487,7 +492,6 @@ public void 
testContainerExclusionWithClosedContainerException()
 
   @ParameterizedTest
   @EnumSource(value = RaftProtos.ReplicationLevel.class, names = 
{"MAJORITY_COMMITTED", "ALL_COMMITTED"})
-  @Flaky("HDDS-13972")
   public void 
testDatanodeExclusionWithMajorityCommit(RaftProtos.ReplicationLevel type) 
throws Exception {
     OzoneConfiguration localConfig = new OzoneConfiguration(conf);
     RatisClientConfig ratisClientConfig = 
localConfig.getObject(RatisClientConfig.class);


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

Reply via email to