[
https://issues.apache.org/jira/browse/FLINK-19207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17195832#comment-17195832
]
Jark Wu commented on FLINK-19207:
---------------------------------
Hi [~lsy], remove on the returned iterator can't remove the element in the
state. We need to {{update}} a {{List}} back to the state anyway, so maybe we
can construct a new ArrayList, and add remaining element to it, and update it
back to state.
> TtlListState#IteratorWithCleanup support remove method
> ------------------------------------------------------
>
> Key: FLINK-19207
> URL: https://issues.apache.org/jira/browse/FLINK-19207
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / State Backends
> Affects Versions: 1.12.0
> Reporter: dalongliu
> Priority: Critical
>
> In Flink-17096 , we are using TTL State refactor group Agg function state
> expiration implement instead of Timer way. However, there’s a slight problem
> which AggregateITCase#testListAggWithRetraction test failed because of
> *IteratorWithCleanup* didn't support remove element, so maybe we need to
> support {{remove}} for {{TtlListState#IteratorWithCleanup.}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)