Re: Stateful Functions PersistentTable duration

2021-07-14 Thread Ammon Diether
Excellent Thank you. On Wed, Jul 14, 2021 at 5:53 AM Igal Shilman wrote: > Hi Ammon, > > The duration is per item, and the cleanup happens transparently and > incrementally via RocksDB (background compactions with a custom filter) [1] > > In your example a gets cleaned up, while b will be clean

Re: Stateful Functions PersistentTable duration

2021-07-14 Thread Igal Shilman
Hi Ammon, The duration is per item, and the cleanup happens transparently and incrementally via RocksDB (background compactions with a custom filter) [1] In your example a gets cleaned up, while b will be cleaned in ~10min. Kind regards, Igal. [1] https://ci.apache.org/projects/flink/flink-doc

Re: Stateful Functions PersistentTable duration

2021-07-13 Thread Ammon Diether
Thank you for asking. I meant PersistedTable -> https://github.com/apache/flink-statefun/blob/release-3.0/statefun-sdk-embedded/src/main/java/org/apache/flink/statefun/sdk/state/PersistedTable.java It is related to state backend. I am using rocksdb backend. On Tue, Jul 13, 2021 at 8:53 PM Caiz

Re: Stateful Functions PersistentTable duration

2021-07-13 Thread Caizhi Weng
Hi By PersistentTable do you mean state backend? If yes, the answer differs with different operators and state backends. For keyed states the duration is for per key. However the exact time to clean up a key really depends on the operator and the state backend. Most operators will register a time

Stateful Functions PersistentTable duration

2021-07-13 Thread Ammon Diether
Question If the duration is 20 minutes, 1) is the duration per item? 2) or is the duration for the table as a whole? Suppose the following items ("a", "a-value") 30 minutes ago ("b", "b-value") 10 minutes ago Does "a" get cleaned up? or neither gets cleaned up yet because the most recent item is