dalelane commented on code in PR #293:
URL: 
https://github.com/apache/flink-connector-kafka/pull/293#discussion_r4062657409


##########
flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/source/reader/KafkaSourceReaderTest.java:
##########
@@ -266,6 +277,456 @@ void testOffsetCommitOnCheckpointComplete() throws 
Exception {
         }
     }
 
+    /** Writes the records that a {@link #offsetConvergenceScenarios} scenario 
needs. */
+    @FunctionalInterface
+    private interface RecordProducer {
+        void produce(String topic) throws Throwable;
+    }
+
+    private static Stream<Arguments> offsetConvergenceScenarios() {

Review Comment:
   running in a very small VM, I was able to reproduce the CI failure
   
   KafkaSourceReaderTest.completeCheckpoint and readAndCommitOffset were 
waiting for an offset commit to reach Kafka without polling the reader. I was 
getting away with this while each fetcher cycle cost a full poll.timeout.ms, 
but by adding the wakeUp I gave myself a race. 
   
   I've added a poll into both loops and now the tests consistently pass even 
in a constrained VM. 



-- 
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