kirktrue commented on code in PR #20521:
URL: https://github.com/apache/kafka/pull/20521#discussion_r2421167927


##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/PlaintextConsumerTest.java:
##########
@@ -1203,12 +1202,21 @@ private void testConsumingWithNullGroupId(Map<String, 
Object> consumerConfig) th
             consumer3.assign(List.of(TP));
             consumer3.seek(TP, 1);
 
-            var numRecords1 = consumer1.poll(Duration.ofMillis(5000)).count();
+            TestUtils.waitForCondition(
+                () -> consumer1.poll(Duration.ofMillis(5000)).count() == 3,
+                "consumer1 did not consume from earliest offset"
+            );

Review Comment:
   This test change has been reverted.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to