g1geordie commented on a change in pull request #9707: URL: https://github.com/apache/kafka/pull/9707#discussion_r539879001
########## 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: if the message is not sent , the thread will have a infinite loop ``` #Sender while( ... . this.accumulator.hasUndrained() || this.client.inFlightRequestCount() > 0 ...) ``` ---------------------------------------------------------------- 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