hachikuji commented on code in PR #14697: URL: https://github.com/apache/kafka/pull/14697#discussion_r1393447344
########## core/src/test/scala/unit/kafka/log/LogValidatorTest.scala: ########## @@ -399,12 +402,20 @@ class LogValidatorTest { assertEquals(i, offsetCounter.value); assertEquals(now + 1, validatingResults.maxTimestampMs, s"Max timestamp should be ${now + 1}") - assertEquals(1, validatingResults.shallowOffsetOfMaxTimestampMs, + + val expectedShallowOffsetOfMaxTimestamp = if (magic >= RecordVersion.V2.value) { Review Comment: If the behavior changes, breaking the test seems correct? Very unlikely we would ever go back to a non-batching format in any case, so this seems like a reasonable default assertion. -- 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