HDDS-1718. Increase Ratis Leader election timeout default. Contributed by Aravindan Vijayan & Siddharth Wagle. (#1062)

This commit is contained in:
Mukul Kumar Singh 2019-07-09 23:17:50 +05:30
parent 1dc58c5b04
commit 96d0555913
3 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ public final class ScmConfigKeys {
"dfs.ratis.leader.election.minimum.timeout.duration"; "dfs.ratis.leader.election.minimum.timeout.duration";
public static final TimeDuration public static final TimeDuration
DFS_RATIS_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_DEFAULT = DFS_RATIS_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_DEFAULT =
TimeDuration.valueOf(1, TimeUnit.SECONDS); TimeDuration.valueOf(5, TimeUnit.SECONDS);
public static final String DFS_RATIS_SNAPSHOT_THRESHOLD_KEY = public static final String DFS_RATIS_SNAPSHOT_THRESHOLD_KEY =
"dfs.ratis.snapshot.threshold"; "dfs.ratis.snapshot.threshold";

View File

@ -270,10 +270,10 @@
</property> </property>
<property> <property>
<name>dfs.ratis.leader.election.minimum.timeout.duration</name> <name>dfs.ratis.leader.election.minimum.timeout.duration</name>
<value>1s</value> <value>5s</value>
<tag>OZONE, RATIS, MANAGEMENT</tag> <tag>OZONE, RATIS, MANAGEMENT</tag>
<description>The minimum timeout duration for ratis leader election. <description>The minimum timeout duration for ratis leader election.
Default is 1s. Default is 5s.
</description> </description>
</property> </property>
<property> <property>

View File

@ -298,7 +298,7 @@ public class TestCloseContainerCommandHandler {
maxOutstandingRequests, maxOutstandingRequests,
TimeDuration.valueOf(3, TimeUnit.SECONDS)); TimeDuration.valueOf(3, TimeUnit.SECONDS));
Assert.assertTrue(client.groupAdd(group, peer.getId()).isSuccess()); Assert.assertTrue(client.groupAdd(group, peer.getId()).isSuccess());
Thread.sleep(2000); Thread.sleep(10000);
final ContainerID containerId = ContainerID.valueof( final ContainerID containerId = ContainerID.valueof(
random.nextLong() & Long.MAX_VALUE); random.nextLong() & Long.MAX_VALUE);
ContainerProtos.ContainerCommandRequestProto.Builder request = ContainerProtos.ContainerCommandRequestProto.Builder request =