Federico Valeri created KAFKA-21502:
---------------------------------------

             Summary: Add MirrorPidResetRecord control record and producer 
state expiry
                 Key: KAFKA-21502
                 URL: https://issues.apache.org/jira/browse/KAFKA-21502
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Federico Valeri


KIP-1279 requires a mechanism to reset producer state on mirror partitions. 
When a destination partition starts mirroring from a source cluster, the 
existing producer id (PID) entries from local producers are no longer valid and 
must be cleared to avoid conflicts with the source cluster's producer state.

Define a new MIRROR_PID_RESET control record type and its corresponding record 
schema (MirrorPidResetRecord). Add a deserializer so the log layer can 
interpret this record type, and provide an API in MemoryRecords for writing it.

When UnifiedLog encounters this control record during append or replay, it 
should expire all existing producer entries in ProducerStateManager, 
effectively resetting the partition's producer state to a clean slate before 
mirroring begins.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to