testfixer0 created FLINK-16409:
----------------------------------
Summary: Use LinkedHashMap for deterministic iterations
Key: FLINK-16409
URL: https://issues.apache.org/jira/browse/FLINK-16409
Project: Flink
Issue Type: Bug
Components: Runtime / Task
Reporter: testfixer0
Fix For: 1.10.0
Test `testKeyedMapStateUpgrade` depends on `put` in `HeapMapState.java` and
`deserialize` in `MapSerializer.java`. It has this following test assertion
`assertEquals((Integer) 1, actual.getKey());` that asserts the `getKey()` value
of `actual`. However the `HashMap` in `put` and `deserialize` does not
guarantee any specific order of entries. Therefore, the assertion will fail if
the order is different.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)