arp7 commented on a change in pull request #1807:
URL: https://github.com/apache/ozone/pull/1807#discussion_r561335912
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerRatisServer.java
##########
@@ -498,23 +498,6 @@ private RaftProperties
newRaftProperties(ConfigurationSource conf) {
// TODO: set max write buffer size
- // Set the ratis leader election timeout
- TimeUnit leaderElectionMinTimeoutUnit =
- OMConfigKeys.OZONE_OM_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_DEFAULT
- .getUnit();
- long leaderElectionMinTimeoutduration = conf.getTimeDuration(
- OMConfigKeys.OZONE_OM_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_KEY,
- OMConfigKeys.OZONE_OM_LEADER_ELECTION_MINIMUM_TIMEOUT_DURATION_DEFAULT
- .getDuration(), leaderElectionMinTimeoutUnit);
- final TimeDuration leaderElectionMinTimeout = TimeDuration.valueOf(
- leaderElectionMinTimeoutduration, leaderElectionMinTimeoutUnit);
- RaftServerConfigKeys.Rpc.setTimeoutMin(properties,
- leaderElectionMinTimeout);
- long leaderElectionMaxTimeout = leaderElectionMinTimeout.toLong(
- TimeUnit.MILLISECONDS) + 200;
- RaftServerConfigKeys.Rpc.setTimeoutMax(properties,
Review comment:
How are we setting the timeout after this change?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]