Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The controller will include the leader epoch of each partition when sending out an StopReplicaRequest. The broker will verify the epoch of each partitions and send an `STALE_CONTROLLER_EPOCH` error when the leader epoch received is older than the known one. `STALE_CONTROLLER_EPOCH` is used to remain consistent with the LeaderAndIsr API.

When a topic is deleted, the leader epoch is not bumped. In this case, we will send a sentinel (-1) which overrides any existing epoch.

Compatibility, Deprecation, and Migration Plan

...