Re: How to prevent check pointing of timers ?

2022-02-08 Thread Alex Drobinsky
Tang : > >> Hi Alex, >> >> I think the better solution is to know what the problem you have ever met >> when restoring the timers? >> >> Flink does not support to remove state (including timer state) currently. >> >> Best >> Yun Tang >>

Re: How to prevent check pointing of timers ?

2022-02-07 Thread Frank Dekervel
*Sent:* Monday, February 7, 2022 21:09 *To:* Caizhi Weng *Cc:* User-Flink *Subject:* Re: How to prevent check pointing of timers ? By timer I mean regular timer from KeyedState which utilized via function onTimer, for example: public class StateWithTimer { p

Re: How to prevent check pointing of timers ?

2022-02-07 Thread Alex Drobinsky
ave ever met > when restoring the timers? > > Flink does not support to remove state (including timer state) currently. > > Best > Yun Tang > -- > *From:* Alex Drobinsky > *Sent:* Monday, February 7, 2022 21:09 > *To:* Caizhi Weng > *Cc

Re: How to prevent check pointing of timers ?

2022-02-07 Thread Yun Tang
To: Caizhi Weng Cc: User-Flink Subject: Re: How to prevent check pointing of timers ? By timer I mean regular timer from KeyedState which utilized via function onTimer, for example: public class StateWithTimer { public long timerValue = 0; public volatile boolean shouldResetTimer = true

Re: How to prevent check pointing of timers ?

2022-02-07 Thread Alex Drobinsky
By timer I mean regular timer from KeyedState which utilized via function onTimer, for example: public class StateWithTimer { public long timerValue = 0; public volatile boolean shouldResetTimer = true; public boolean resetIfMust(long timeoutInMilliseconds, TimerService

Re: How to prevent check pointing of timers ?

2022-02-06 Thread Caizhi Weng
Hi! Could you elaborate more on your code or share it if possible? Which timer are you talking about? Are you using the data stream API or SQL API? Do you mean the timer registered per record for a window aggregation? Does mini batch aggregation [1] solve your problem? [1]

How to prevent check pointing of timers ?

2022-02-03 Thread Alex Drobinsky
Dear flink user, In our project, restoring the timer's state creates numerous issues, so I would like to know if it is possible to avoid save/restore of timers altogether. If it isn't possible, how could I delete all registered timers during the open function ? Best regards, Alexander