pnowojski commented on a change in pull request #18702:
URL: https://github.com/apache/flink/pull/18702#discussion_r804469710



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java
##########
@@ -325,8 +366,12 @@ private void stopInternalServices() {
 
     public CompletableFuture<Void> stop(StopMode mode) {
         switch (operatingMode) {
+            case WAITING_FOR_ALIGNMENT:
             case OUTPUT_NOT_INITIALIZED:
             case READING:
+                if (operatingMode == OperatingMode.WAITING_FOR_ALIGNMENT) {
+                    waitingForAlignmentFuture.complete(null);

Review comment:
       I was thinking about it, initially I decided against it, but on the 
second thought maybe indeed that's better.




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