You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yu Li (Jira)" <ji...@apache.org> on 2020/05/28 09:50:00 UTC

[jira] [Closed] (FLINK-17610) Align the behavior of result of internal map state to return empty iterator

     [ https://issues.apache.org/jira/browse/FLINK-17610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yu Li closed FLINK-17610.
-------------------------
    Resolution: Done

Merged into
master via f3088e0790fc0351a379e86955138e62550263c7
release-1.11 via f3733905222b2bdc6ecf91e6e663d151fdc73259

> Align the behavior of result of internal map state to return empty iterator
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-17610
>                 URL: https://issues.apache.org/jira/browse/FLINK-17610
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / State Backends
>    Affects Versions: 1.11.0
>            Reporter: Nicholas Jiang
>            Assignee: Nicholas Jiang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>
> There are different behaviors of result of internal map state. For HeapMapState, #entries(), #keys(), #values(), and #iterator() would all return null. However, for RocksDBMapState, #entries() would return null, while #keys(), #values(), #iterator() would return empty iterator. UserFacingMapState would align these behaviors to empty iterator for users, therefore this should better align these internal behavior to return empty iterator instead of null.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)