zhuzhurk commented on a change in pull request #12278: URL: https://github.com/apache/flink/pull/12278#discussion_r440767961
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DualKeyLinkedMap.java ########## @@ -22,12 +22,16 @@ import java.util.AbstractCollection; import java.util.Collection; +import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Set; /** - * Map which stores values under two different indices. + * Map which stores values under two different indices. The mapping of the primary key to the + * value is backed by {@link LinkedHashMap} so that the iteration order over the values and + * the primary key set is the insertion order. Note that there is no contract of the iteration + * order over the secondary key set. Review comment: Good suggestion. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org