Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the state machine attempts to create a snapshot writer we should validate that the following is true:
- The end offset of the snapshot is less than or equal to the high-watermark.
- The epoch of the snapshot is less than or equal to the quorum epoch.
- 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
- is blocked by
-
KAFKA-10394 Internal API for generating snapshots
- Resolved
-
KAFKA-10761 In Raft support nonzero start offset and SnapshotId for the Fetch request handling
- Resolved
- links to