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


##########
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:
   Thanks for the nit! Simplified the comment to a single line. Updated in the 
latest commit.



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