Github user StefanRRichter commented on a diff in the pull request:
https://github.com/apache/flink/pull/3770#discussion_r113924290
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionJobVertex.java
---
@@ -139,6 +158,10 @@ public ExecutionJobVertex(
this.serializedTaskInformation = null;
this.taskVertices = new ExecutionVertex[numTaskVertices];
+ List<OperatorID> opIDs = jobVertex.getOperatorIDs();
+ this.operatorIDs = opIDs.toArray(new OperatorID[opIDs.size()]);
--- End diff --
How about making `operatorIDs` an immutable list instead of an array. I
think all the operations you perform could also run on an array list and we
could enforce immutability so that nobody is tempted to modify the inner state
of the original array (e.g. to reverse the element order for convenience in
other parts of the code). Same for the alternative Ids.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---