jolshan commented on code in PR #13608: URL: https://github.com/apache/kafka/pull/13608#discussion_r1195788236
########## storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateEntry.java: ########## @@ -41,18 +42,35 @@ public class ProducerStateEntry { private int coordinatorEpoch; private long lastTimestamp; private OptionalLong currentTxnFirstOffset; + + private VerificationState verificationState; + + // Before any batches are associated with the entry, the tentative sequence represents the lowest sequence seen. + private OptionalInt tentativeSequence; + + public enum VerificationState { + EMPTY, + VERIFYING, + VERIFIED + } Review Comment: this falls under the known gap for part 1. we can't prevent old batches from joining new transactions, but we can prevent hanging ones [4:47](https://confluent.slack.com/archives/C055ADL2X9P/p1684280850696749) once we get epoch bumps this will work correctly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org