[
https://issues.apache.org/jira/browse/FLINK-19207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196172#comment-17196172
]
dalongliu commented on FLINK-19207:
-----------------------------------
Hi [~jark], as you say, I understand we should do as follows:
# Firstly, TtlListState#IteratorWithCleanup support remove method which can
remove the element;
# Secondly, in StateListView#remove method we first get the iterator from
state, and remove the value, then we add remaining element in it to new
ArrayList, and update list to state.
Do I understand correctly?
> 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)