chia7712 commented on a change in pull request #9707: URL: https://github.com/apache/kafka/pull/9707#discussion_r539920047
########## File path: clients/src/test/java/org/apache/kafka/clients/producer/KafkaProducerTest.java ########## @@ -131,6 +131,14 @@ Collections.singletonList(new PartitionInfo(topic, 0, null, null, null)), Collections.emptySet(), Collections.emptySet()); + + private final Cluster oneLeaderCluster = new Cluster( Review comment: Thanks for your explanation. ```oneLeaderCluster``` is used by this test case only. Could you make it be a local variable? ---------------------------------------------------------------- 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