ijuma commented on code in PR #18468: URL: https://github.com/apache/kafka/pull/18468#discussion_r1911671034
########## core/src/test/scala/unit/kafka/server/ReplicaFetcherThreadTest.scala: ########## @@ -130,96 +128,12 @@ class ReplicaFetcherThreadTest { ApiKeys.FETCH.latestVersion(true), testingVersion.fetchRequestVersion ) - assertEquals( - ApiKeys.OFFSET_FOR_LEADER_EPOCH.latestVersion(true), - testingVersion.offsetForLeaderEpochRequestVersion - ) assertEquals( ApiKeys.LIST_OFFSETS.latestVersion(true), testingVersion.listOffsetRequestVersion ) } - @Disabled("KAFKA-18370") - @Test - def testFetchLeaderEpochRequestIfLastEpochDefinedForSomePartitions(): Unit = { Review Comment: I see. The reason I removed these tests is: 1. They relied on IBP 2.6-IV0 via the `kafkaConfigNoTruncateOnFetch` method. 2. They were disabled. 3. I was under the impression that the truncation approach from IBP 2.7 onwards does not rely on offset for leader epochs requests: #9382 So, I wasn't sure how to make the tests work. Your point is that the legacy code is still there and hence removing the tests is premature. Is that right? -- 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