Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10310 Kafka Raft Snapshot
  3. KAFKA-10800

Validate the snapshot id when the state machine creates a snapshot

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • replication
    • None

    Description

      When the state machine attempts to create a snapshot writer we should validate that the following is true:

      1. The end offset of the snapshot is less than or equal to the high-watermark.
      2. The epoch of the snapshot is less than or equal to the quorum epoch.
      3. The end offset and epoch of the snapshot is valid based on the leader epoch cache.

      Note that this validation should not be performed when the raft client creates the snapshot writer because in that case the local log is out of date and the follower should trust the snapshot id sent by the partition leader.

      Attachments

        Issue Links

          Activity

            People

              feyman Haoran Xuan
              jagsancio Jose Armando Garcia Sancio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: