Hi Bowen, Thanks for the proposal! I think state TTL would be a great feature! Actually, we have implemented this for SQL / Table API [1]. I've added a couple of comments to the design doc.
In principle, I'm not sure if this functionality should be added to the state backends. We could also use the existing timer service which would have a few nice benefits (see my comments in the docs). Best, Fabian [1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/table/streaming.html#idle-state-retention-time 2018-02-06 8:26 GMT+01:00 Bowen Li <bowenl...@gmail.com>: > Hi guys, > > I want to propose a new FLIP -- FLIP-25 - Support User State TTL Natively > in Flink. This has been one of most handy and most frequently asked > features in Flink community. The jira ticket is FLINK-3089 > <https://issues.apache.org/jira/browse/FLINK-3089>. > > I've written a rough design > <https://docs.google.com/document/d/1qiFqtCC80n4oFmmfxBWXrCd37mYKc > uureyEr_nPAvSo/edit#> > doc > <https://docs.google.com/document/d/1qiFqtCC80n4oFmmfxBWXrCd37mYKc > uureyEr_nPAvSo/edit#>, > and developed prototypes for both heap and rocksdb state backends. > > My question is: shall we create a FLIP page for this? Can I be granted the > privileges of creating pages in > https://cwiki.apache.org/confluence/display/FLINK/ > Flink+Improvement+Proposals > ? > > Thanks, > Bowen >