This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state: Draft

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

JIRA: here [Change the link from KAFKA-1 to your own ticket]

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

Motivation

The controller quorum fetch loop relies on a timing invariant for correctness and liveness: the maximum fetch wait(currently effectively bounded to ~500 ms) must be significantly smaller than half of the fetch timeout.

In practice, the algorithm makes progress because:

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. Silent clamping to 1000 ms:

  2. Derive timeout automatically (e.g., k * max_fetch_wait):

  3. Make max fetch wait configurable instead: