You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "testfixer0 (Jira)" <ji...@apache.org> on 2020/03/03 19:15:00 UTC

[jira] [Created] (FLINK-16409) Use LinkedHashMap for deterministic iterations

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)