Skip to content

Commit

Permalink
chore(config): change quorum default timeout to 5s (#1824)
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Han <[email protected]>
  • Loading branch information
superhx authored Aug 16, 2024
1 parent 385b5b1 commit daea645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raft/src/main/java/org/apache/kafka/raft/QuorumConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class QuorumConfig {
public static final String QUORUM_FETCH_TIMEOUT_MS_DOC = "Maximum time without a successful fetch from " +
"the current leader before becoming a candidate and triggering an election for voters; Maximum time " +
"a leader can go without receiving valid fetch or fetchSnapshot request from a majority of the quorum before resigning.";
public static final int DEFAULT_QUORUM_FETCH_TIMEOUT_MS = 2_000;
public static final int DEFAULT_QUORUM_FETCH_TIMEOUT_MS = 5_000;

public static final String QUORUM_ELECTION_BACKOFF_MAX_MS_CONFIG = QUORUM_PREFIX + "election.backoff.max.ms";
public static final String QUORUM_ELECTION_BACKOFF_MAX_MS_DOC = "Maximum time in milliseconds before starting new elections. " +
Expand All @@ -85,7 +85,7 @@ public class QuorumConfig {
public static final String QUORUM_REQUEST_TIMEOUT_MS_CONFIG = QUORUM_PREFIX +
CommonClientConfigs.REQUEST_TIMEOUT_MS_CONFIG;
public static final String QUORUM_REQUEST_TIMEOUT_MS_DOC = CommonClientConfigs.REQUEST_TIMEOUT_MS_DOC;
public static final int DEFAULT_QUORUM_REQUEST_TIMEOUT_MS = 2_000;
public static final int DEFAULT_QUORUM_REQUEST_TIMEOUT_MS = 5_000;

public static final String QUORUM_RETRY_BACKOFF_MS_CONFIG = QUORUM_PREFIX +
CommonClientConfigs.RETRY_BACKOFF_MS_CONFIG;
Expand Down

0 comments on commit daea645

Please sign in to comment.