ijuma commented on a change in pull request #10389: URL: https://github.com/apache/kafka/pull/10389#discussion_r602257805
########## File path: core/src/test/scala/unit/kafka/server/ListOffsetsRequestTest.scala ########## @@ -154,7 +160,10 @@ class ListOffsetsRequestTest extends BaseRequestTest { @Test def testResponseIncludesLeaderEpoch(): Unit = { - val partitionToLeader = TestUtils.createTopic(zkClient, topic, numPartitions = 1, replicationFactor = 3, servers) + val topicConfig = new Properties + // make sure we won't lose data when force-removing leader + topicConfig.setProperty(TopicConfig.MIN_IN_SYNC_REPLICAS_CONFIG, "2") Review comment: Yeah, but if you have 3 brokers and you shutdown one of them, you should still have 2 brokers in the ISR. Are you saying that we are shrinking the ISR to 1 in this test? That would be unexpected. -- 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