tombentley commented on code in PR #12159: URL: https://github.com/apache/kafka/pull/12159#discussion_r881437895
########## clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java: ########## @@ -1030,10 +1025,7 @@ private void blockingConnect(String node) throws IOException { protected void blockingConnect(String node, InetSocketAddress serverAddr) throws IOException { selector.connect(node, serverAddr, BUFFER_SIZE, BUFFER_SIZE); - while (!selector.connected().contains(node)) - selector.poll(10000L); - while (!selector.isChannelReady(node)) - selector.poll(10000L); + NetworkTestUtils.waitForChannelReady(selector, node); Review Comment: The question is whether this test should assume the correctness of the implementation of that state machine in KafkaChannel. It's probably a safe assumption, but I'd be inclined to not make that assumption. -- 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