You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "rkhachatryan (via GitHub)" <gi...@apache.org> on 2023/03/02 11:46:22 UTC

[GitHub] [flink] rkhachatryan commented on a diff in pull request #22022: [FLINK-31133][tests] Fix timeouts in PartiallyFinishedSourcesITCase

rkhachatryan commented on code in PR #22022:
URL: https://github.com/apache/flink/pull/22022#discussion_r1122972996


##########
flink-tests/src/test/java/org/apache/flink/runtime/operators/lifecycle/graph/TestEventSource.java:
##########
@@ -103,6 +110,14 @@ private void ack(TestCommand cmd) {
 
     @Override
     public void cancel() {
+        stop();
+    }
+
+    private void stop() {
+        commandQueue.unsubscribe(operatorID, commandExecutor);
         isRunning = false;
+        if (!scheduledCommands.isEmpty()) {

Review Comment:
   Good point!
   Fixed in 783cc00fae8138259209d755349c4ce296e478c0.



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org