zhuzhurk commented on code in PR #21743:
URL: https://github.com/apache/flink/pull/21743#discussion_r1089677576


##########
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/strategy/ConsumedPartitionGroup.java:
##########
@@ -130,4 +138,12 @@ public boolean areAllPartitionsFinished() {
     public ResultPartitionType getResultPartitionType() {
         return resultPartitionType;
     }
+
+    public ConsumerVertexGroup getConsumerVertexGroup() {
+        return checkNotNull(consumerVertexGroup, "ConsumerVertexGroup is not 
properly set.");
+    }
+
+    public void setConsumerVertexGroup(ConsumerVertexGroup 
consumerVertexGroup) {

Review Comment:
   `this. consumerVertexGroup == null` is good enough I think. We do not expect 
this set method of one group to be invoked multiple times.



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