You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Haoran Xuan (Jira)" <ji...@apache.org> on 2021/06/16 13:38:00 UTC

[jira] [Created] (KAFKA-12956) Validate the snapshot id when the state machine freeze a snapshot

Haoran Xuan created KAFKA-12956:
-----------------------------------

             Summary: Validate the snapshot id when the state machine freeze a snapshot
                 Key: KAFKA-12956
                 URL: https://issues.apache.org/jira/browse/KAFKA-12956
             Project: Kafka
          Issue Type: Sub-task
            Reporter: Haoran Xuan


This is similar to KAFKA-10800, in this PR, optionally validate the snapshot id when `onSnapshotFrozen` is being called. The validation logic will be implemented in KAFKA-10800, and this Jira is supposed to directly call that logic.

Currently, the `onSnapshotFrozen` can be called by `KafkaRaftClient` and `SnapshotWriter`. Do not validate if it is called by `KafkaRaftClient` when it's downloading snapshot from leader, do validate if it is called by  `SnapshotWriter` which implies generating a specific snapshot.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)