zhuzhurk commented on a change in pull request #18218:
URL: https://github.com/apache/flink/pull/18218#discussion_r776555205



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/EdgeManager.java
##########
@@ -50,14 +50,11 @@ public void connectPartitionWithConsumerVertexGroup(
 
         checkNotNull(consumerVertexGroup);
 
-        final List<ConsumerVertexGroup> consumers =
-                getConsumerVertexGroupsForPartitionInternal(resultPartitionId);
-
-        // sanity check
         checkState(
-                consumers.isEmpty(), "Currently there has to be exactly one 
consumer in real jobs");
+                getConsumerVertexGroupForPartition(resultPartitionId) == null,
+                "Currently one partition can have at most one consumer group");
 
-        consumers.add(consumerVertexGroup);
+        partitionConsumers.put(resultPartitionId, consumerVertexGroup);

Review comment:
       Yes, it is better. I will apply this change .




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