Status

Current state: Draft

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: here

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

, we optimize the beginQuorumEpochRequest timeout

The controller quorum fetch loop relies on a timing invariant for correctness and liveness: the Raft maximum fetch wait(currently hardcode to 500 ms) must be significantly smaller than half of the controller.quorum.fetch.timeout.ms after KAFKA-16926.

In practice, the algorithm makes progress because:

raft_max_fetch_wait (500 ms)  <<  controller.quorum.fetch.timeout.ms  / 2

If operators set an unusually small controller.quorum.fetch.timeout.ms, this invariant can be violated, risking premature timeouts, spurious retries, and degraded stability. To preserve the invariant across configurations and upgrades, we propose to enforce a lower bound of 1000 ms for controller.quorum.fetch.timeout.ms.

Public Interfaces

Configuration change (validation only):

Proposed Changes

Compatibility, Deprecation, and Migration Plan

Test Plan

Rejected Alternatives

  1. Do not change the limitation:
  2. Make raft max fetch wait configurable instead: