Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k/replicated_partition: use confirmed term as a source of leader epoch
A leader epoch is used by Kafka clients to determine if a replica is up to date with the leader and to detect truncation. The leader epoch differs from Raft term as the term is updated when leader election starts. Whereas the leader epoch is updated after the state of the replica is determined. Therefore the leader epoch uses confirmed term instead of the simple term which is incremented every time the leader election starts. Signed-off-by: Michal Maslanka <michal@redpanda.com> (cherry picked from commit e746f79)
- Loading branch information