[
https://issues.apache.org/jira/browse/FLINK-41417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146355#comment-18146355
]
Stefan Wang commented on FLINK-41417:
-------------------------------------
I've opened https://github.com/apache/flink/pull/29960 with a fix. Could a
committer assign this ticket to me?
> TtlMapState async iterators always report isEmpty() as false
> ------------------------------------------------------------
>
> Key: FLINK-41417
> URL: https://issues.apache.org/jira/browse/FLINK-41417
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Async State Processing
> Affects Versions: 2.4.0, 2.5.0, 2.3.2
> Reporter: Martijn Visser
> Priority: Minor
> Labels: pull-request-available
>
> TtlMapState.AsyncEntriesIterator#isEmpty returns false unconditionally. So on
> ForSt with TTL enabled, asyncEntries(), asyncKeys() and asyncValues() report
> a non-empty iterator for an empty or cleared map, while without TTL they
> report true. Delegating to the wrapped iterator matches the non-TTL result,
> except when every entry has expired.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)