HDDS-1718. Increase Ratis Leader election timeout default. Contributed by Aravindan Vijayan & Siddharth Wagle. (#1062)
This commit is contained in:
parent
1dc58c5b04
commit
96d0555913
|
@ -147,7 +147,7 @@ public final class ScmConfigKeys {
|
|||
"dfs.ratis.leader.election.minimum.timeout.duration";
|
||||
public static final TimeDuration
|
||||
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 =
|
||||
"dfs.ratis.snapshot.threshold";
|
||||
|
|
|
@ -270,10 +270,10 @@
|
|||
</property>
|
||||
<property>
|
||||
<name>dfs.ratis.leader.election.minimum.timeout.duration</name>
|
||||
<value>1s</value>
|
||||
<value>5s</value>
|
||||
<tag>OZONE, RATIS, MANAGEMENT</tag>
|
||||
<description>The minimum timeout duration for ratis leader election.
|
||||
Default is 1s.
|
||||
Default is 5s.
|
||||
</description>
|
||||
</property>
|
||||
<property>
|
||||
|
|
|
@ -298,7 +298,7 @@ public class TestCloseContainerCommandHandler {
|
|||
maxOutstandingRequests,
|
||||
TimeDuration.valueOf(3, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(client.groupAdd(group, peer.getId()).isSuccess());
|
||||
Thread.sleep(2000);
|
||||
Thread.sleep(10000);
|
||||
final ContainerID containerId = ContainerID.valueof(
|
||||
random.nextLong() & Long.MAX_VALUE);
|
||||
ContainerProtos.ContainerCommandRequestProto.Builder request =
|
||||
|
|
Loading…
Reference in New Issue