How long will keyed state exist if no TTL given?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How long will keyed state exist if no TTL given?

Marco Villalobos-2
After reading

https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/stream/state/state.html

It is unclear to me how long keyed state will exist if it has no TTL.
Is it cached forever, unless explicitly cleared or overwritten?

can somebody please explain to me?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How long will keyed state exist if no TTL given?

r_khachatryan
Hi Marco,

Yes, if TTL is not configured then the state will never expire (will stay forever until deleted explicitly).

Regards,
Roman


On Tue, Dec 8, 2020 at 5:09 PM Marco Villalobos <[hidden email]> wrote:
After reading

https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/stream/state/state.html

It is unclear to me how long keyed state will exist if it has no TTL.
Is it cached forever, unless explicitly cleared or overwritten?

can somebody please explain to me?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How long will keyed state exist if no TTL given?

Marco Villalobos-2
Thank you for the clarification.

On Tue, Dec 8, 2020 at 8:14 AM Khachatryan Roman
<[hidden email]> wrote:

>
> Hi Marco,
>
> Yes, if TTL is not configured then the state will never expire (will stay forever until deleted explicitly).
>
> Regards,
> Roman
>
>
> On Tue, Dec 8, 2020 at 5:09 PM Marco Villalobos <[hidden email]> wrote:
>>
>> After reading
>>
>> https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/stream/state/state.html
>>
>> It is unclear to me how long keyed state will exist if it has no TTL.
>> Is it cached forever, unless explicitly cleared or overwritten?
>>
>> can somebody please explain to me?
>>
>> Thank you.