leader epoch

A counter per partition that goes up by one every time a new leader is elected.

In more detail

Comparing the epoch before and after a broker failure tells you which partitions changed leader. Replicas also use it to discard stale data from an old leader.

Related terms

Taught in

References

Certification courses