spuru9 commented on code in PR #27954:
URL: https://github.com/apache/flink/pull/27954#discussion_r3100671232


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/runtime/utils/FailingCollectionSource.java:
##########
@@ -166,9 +163,15 @@ public void run(SourceContext<T> ctx) throws Exception {
             if (!failedBefore) {
                 // delay a bit, if we have not failed before
                 Thread.sleep(1);
-                if (numSuccessfulCheckpoints >= 1 && 
lastCheckpointedEmittedNum >= 1) {
-                    // cause a failure if we have not failed before and have a 
completed checkpoint
-                    // and have processed at least one element
+                if (lastCheckpointedEmittedNum >= failureAfterNumElements) {
+                    // cause a failure if we have not failed before, and have 
checkpointed at

Review Comment:
   nit: can we make this comment smaller comment. Looks too verbose.
   rest LGTM



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