Kevin Wu created KAFKA-17713: -------------------------------- Summary: Ensure snapshots are aligned to batch boundaries Key: KAFKA-17713 URL: https://issues.apache.org/jira/browse/KAFKA-17713 Project: Kafka Issue Type: Bug Reporter: Kevin Wu
In the case of a metadata transaction that is started in the middle of the record batch, the records preceding the BeginTransactionRecord in the batch are flushed. This means the SnapshotGenerator can emit a snapshot whose fetch offset (lastContainedOffset + 1) "X" is not aligned to a batch boundary. This can result in followers/observers that fetch and apply this bad snapshot to be unable to successfully fetch thereafter since the follower will reject the fetched record batch that contains offset X (starting at offset X - M), since X - M < X. -- This message was sent by Atlassian Jira (v8.20.10#820010)