[
https://issues.apache.org/jira/browse/KAFKA-21494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Federico Valeri updated KAFKA-21494:
------------------------------------
Description:
The LastMirrorEpochsValue record currently carries only position data without
any fencing or versioning metadata. This creates two gaps in the coordinator's
cache coherence model.
Without LeaderEpoch, the coordinator cannot reject a stale LME write from a
leader that lost leadership mid-flight during the STOPPING sequence.
Without StateEpoch, the coordinator does not version LME writes. The local
partition leader cache cannot reliably distinguish between concurrent LME
writes from the same state revision, and the coordinator writes stale metadata
to the topic rather than rejecting them upfront. Adding StateEpoch lets the
coordinator validate, bump, and persist a monotonic epoch on each LME write.
was:
The LastMirrorEpochsValue record currently carries only position data without
any fencing or versioning metadata. This creates two gaps in the coordinator's
cache coherence model.
Without LeaderEpoch, the coordinator cannot reject a stale LME write from a
leader that lost leadership mid-flight during the STOPPING sequence.
Without StateEpoch, the coordinator does not version LME writes. The local
partition leader cache cannot reliably distinguish between concurrent LME
writes from the same state revision, and the coordinator writes stale positions
to the topic rather than rejecting them upfront. Adding StateEpoch lets the
coordinator validate, bump, and persist a monotonic epoch on each LME write.
> Add LeaderEpoch and StateEpoch to LastMirrorEpochsValue
> -------------------------------------------------------
>
> Key: KAFKA-21494
> URL: https://issues.apache.org/jira/browse/KAFKA-21494
> Project: Kafka
> Issue Type: Sub-task
> Reporter: Federico Valeri
> Priority: Major
>
> The LastMirrorEpochsValue record currently carries only position data without
> any fencing or versioning metadata. This creates two gaps in the
> coordinator's cache coherence model.
> Without LeaderEpoch, the coordinator cannot reject a stale LME write from a
> leader that lost leadership mid-flight during the STOPPING sequence.
> Without StateEpoch, the coordinator does not version LME writes. The local
> partition leader cache cannot reliably distinguish between concurrent LME
> writes from the same state revision, and the coordinator writes stale
> metadata to the topic rather than rejecting them upfront. Adding StateEpoch
> lets the coordinator validate, bump, and persist a monotonic epoch on each
> LME write.
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)