zhijiangW commented on a change in pull request #11687: 
[FLINK-16536][network][checkpointing] Implement InputChannel state recovery for 
unaligned checkpoint
URL: https://github.com/apache/flink/pull/11687#discussion_r408575571
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java
 ##########
 @@ -213,19 +215,23 @@ public SingleInputGate(
        }
 
        @Override
-       public void setup() throws IOException, InterruptedException {
+       public void setup() throws IOException {
                checkState(this.bufferPool == null, "Bug in input gate setup 
logic: Already registered buffer pool.");
                // assign exclusive buffers to input channels directly and use 
the rest for floating buffers
                assignExclusiveSegments();
 
                BufferPool bufferPool = bufferPoolFactory.get();
                setBufferPool(bufferPool);
+       }
+
 
-               requestPartitions();
 
 Review comment:
   No matter streaming or batch, this method is always called by task thread 
when the `SingleInputGate` is created to setup. The only difference between 
streaming and batch is for RPC call `updateInputChannel` which is only valid in 
batch. But for batch we do not support unaligned cp, so the new transformed 
remote channel from unknown can request partition directly.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to