davidradl commented on code in PR #27083:
URL: https://github.com/apache/flink/pull/27083#discussion_r2414366985


##########
flink-runtime/src/main/java/org/apache/flink/streaming/runtime/watermarkstatus/WatermarkStatus.java:
##########
@@ -81,21 +81,25 @@ public final class WatermarkStatus extends StreamElement {
 
     public static final int IDLE_STATUS = -1;
     public static final int ACTIVE_STATUS = 0;
+    public static final int FINISHED_STATUS = 1;
 
     public static final WatermarkStatus IDLE = new 
WatermarkStatus(IDLE_STATUS);
     public static final WatermarkStatus ACTIVE = new 
WatermarkStatus(ACTIVE_STATUS);
+    public static final WatermarkStatus FINISHED = new 
WatermarkStatus(FINISHED_STATUS);
 
     public final int status;
 
     public WatermarkStatus(int status) {
-        if (status != IDLE_STATUS && status != ACTIVE_STATUS) {
+        if (status != IDLE_STATUS && status != ACTIVE_STATUS && status != 
FINISHED_STATUS) {

Review Comment:
   how can we get into this situation?



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