wsry commented on a change in pull request #18130:
URL: https://github.com/apache/flink/pull/18130#discussion_r790541615



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGateFactory.java
##########
@@ -224,15 +245,25 @@ private InputChannel createInputChannel(
                                 inputGate,
                                 index,
                                 nettyShuffleDescriptor,
+                                consumedSubpartitionIndex,
                                 channelStatistics,
                                 metrics));
     }
 
+    private static int calculateNumChannels(
+            int numShuffleDescriptors, SubpartitionIndexRange 
subpartitionIndexRange) {
+        return numShuffleDescriptors

Review comment:
       Do we need a overflow check?




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