aloknnikhil commented on a change in pull request #9881: URL: https://github.com/apache/kafka/pull/9881#discussion_r557624393
########## File path: raft/src/main/java/org/apache/kafka/raft/RaftConfig.java ########## @@ -129,16 +130,25 @@ public String toString() { QUORUM_LINGER_MS_DOC); } - public RaftConfig(Properties props) { - super(CONFIG, props); - } + private final int requestTimeoutMs; + private final int retryBackoffMs; + private final int electionTimeoutMs; + private final int electionBackoffMaxMs; + private final int fetchTimeoutMs; + private final int appendLingerMs; - public RaftConfig(Map<String, Object> props) { - super(CONFIG, props); + public RaftConfig(Map<?, ?> props) { + this(props, true); } protected RaftConfig(Map<?, ?> props, boolean doLog) { super(CONFIG, props, doLog); + requestTimeoutMs = getInt(QUORUM_REQUEST_TIMEOUT_MS_CONFIG); + retryBackoffMs = getInt(QUORUM_RETRY_BACKOFF_MS_CONFIG); + electionTimeoutMs = getInt(QUORUM_ELECTION_TIMEOUT_MS_CONFIG); + electionBackoffMaxMs = getInt(QUORUM_ELECTION_BACKOFF_MAX_MS_CONFIG); + fetchTimeoutMs = getInt(QUORUM_FETCH_TIMEOUT_MS_CONFIG); + appendLingerMs = getInt(QUORUM_LINGER_MS_CONFIG); Review comment: Yea, I think that's reasonable. Added. ---------------------------------------------------------------- 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: us...@infra.apache.org