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



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractInput.java
##########
@@ -68,4 +68,13 @@ public void processLatencyMarker(LatencyMarker 
latencyMarker) throws Exception {
        public void setKeyContextElement(StreamRecord record) throws Exception {
                owner.internalSetKeyContextElement(record, stateKeySelector);
        }
+
+       @Override
+       public void endInput() throws Exception {
+               if (owner instanceof BoundedOneInput && inputId == 1) {

Review comment:
       I think this could lead to more confusion and bugs. It would be better 
to keep it simple and not support it. `endInput()` in your example above 
someone could understand as ending all inputs. 
   
   Also as always. Keeping it simpler now, means we can always extend it in the 
future if we change our mind. But if we decide to support some  strange 
combination now "just because we can", backing out from it won't be possible 
without braking compatibility. 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to