wanglijie95 commented on code in PR #21963:
URL: https://github.com/apache/flink/pull/21963#discussion_r1188448597
##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java:
##########
@@ -205,7 +216,7 @@ private StreamingJobGraphGenerator(
this.defaultStreamGraphHasher = new StreamGraphHasherV2();
this.legacyStreamGraphHashers = Arrays.asList(new
StreamGraphUserHashHasher());
- this.jobVertices = new HashMap<>();
+ this.jobVertices = new LinkedHashMap<>();
Review Comment:
Yes, it's needed, because we hope to set vertex/operator
parallelisms/outputs in the same order as vertices' creation, so we use the
`LinkedHashMap` to record the order of vertices' creation.
I think the changes of order will not have any negative impacts ?
--
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]