hachikuji commented on code in PR #13230: URL: https://github.com/apache/kafka/pull/13230#discussion_r1103426128
########## core/src/test/scala/unit/kafka/server/AbstractFetcherThreadTest.scala: ########## @@ -1089,6 +1089,85 @@ class AbstractFetcherThreadTest { fetcher.verifyLastFetchedEpoch(partition, Some(5)) } + @Test + def testTruncateOnFetchDoesNotUpdateHighWatermark(): Unit = { Review Comment: nit: wonder if we should change the name. The test is not really doing anything with the high watermark; it is just verifying that `processPartitionData` is not called. Maybe a test like this could exist for `ReplicaFetcherThread`? -- 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