abbccdda commented on a change in pull request #11015: URL: https://github.com/apache/kafka/pull/11015#discussion_r756498765
########## File path: core/src/main/scala/kafka/raft/KafkaMetadataLog.scala ########## @@ -76,6 +76,9 @@ final class KafkaMetadataLog private ( if (records.sizeInBytes == 0) throw new IllegalArgumentException("Attempt to append an empty record set") + if (epoch < lastFetchedEpoch()) Review comment: Do we need sth even more strict such that the diff between append epoch and last epoch are within 1? In what case will epoch + 2 be valid? -- 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