mumrah commented on a change in pull request #10256: URL: https://github.com/apache/kafka/pull/10256#discussion_r587822370
########## File path: core/src/test/scala/kafka/raft/KafkaMetadataLogTest.scala ########## @@ -310,44 +288,109 @@ final class KafkaMetadataLogTest { log.close() - val secondLog = buildMetadataLog(tempDir, mockTime, topicPartition) + val secondLog = buildMetadataLog(tempDir, mockTime) assertEquals(snapshotId, secondLog.latestSnapshotId.get) assertEquals(snapshotId.offset, secondLog.startOffset) assertEquals(snapshotId.epoch, secondLog.lastFetchedEpoch) assertEquals(snapshotId.offset, secondLog.endOffset().offset) assertEquals(snapshotId.offset, secondLog.highWatermark.offset) } + + @Test + def testMaxBatchSize(): Unit = { + val leaderEpoch = 5 + val maxBatchSizeInBytes = 16384 + val recordSize = 64 Review comment: Thanks for the explanation 👍 I figured it had something to do with the size overhead ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org