Re: How exactly does Idle-state retention policy work?
Posted by
Dian Fu on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/How-exactly-does-Idle-state-retention-policy-work-tp30027p30030.html
Hi Srikanth,
As you side, the idle-state retention time configuration only works for "group aggregate" and "over aggregate".
Regarding to your question:
Is you question "how does the eviction work"? If it is, it will register a timer for each key and when the state corresponding to some key is not accessed for the configured time, the state will be cleared as a callback of the timer. The state clear is not triggered by the heap size, but by the timer.
That's right. For time window join, the outdated records will be cleared automatically.
Regards,
Dian
Hi there,
I'm using FlinkSQL to solve to do the job for me. Based on
this, configured the idle-state milliseconds.
context: FlinkSQL reads Kafka stream with no key and put to dynamic table(
sourceKafka). There's another static table(
badips) loaded from file and the join is performed from dynamic table on static like: