bvarghese1 commented on code in PR #23728:
URL: https://github.com/apache/flink/pull/23728#discussion_r1399839325


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/testutils/RestoreTestBase.java:
##########
@@ -222,7 +249,15 @@ void testRestore(TableTestProgram program, 
ExecNodeMetadata metadata) throws Exc
 
         final CompiledPlan compiledPlan =
                 tEnv.loadPlan(PlanReference.fromFile(getPlanPath(program, 
metadata)));
-        compiledPlan.execute().await();
+
+        if (!isTerminatingSource) {
+            final TableResult tableResult = compiledPlan.execute();
+            CompletableFuture.allOf(futures.toArray(new 
CompletableFuture[0])).get();
+            tableResult.getJobClient().get().cancel().get();
+        } else {
+            compiledPlan.execute().await();
+        }
+
         for (SinkTestStep sinkTestStep : program.getSetupSinkTestSteps()) {

Review Comment:
   Fixed in 
https://github.com/apache/flink/commit/be5e0b4df733f33c877437a782f5e70c47701acb



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