Github user aljoscha commented on the pull request:
https://github.com/apache/flink/pull/1988#issuecomment-220002453
@gyfora Yes, this is correct. We'll have to put the timers into partitioned
state and upon restarting iterate over the saved timers to re-set any callbacks
at the `StreamTask`.
Doing this naively would slow things down. What I had in mind is to still
keep the timers in an in-memory `Map` but before snapshotting put them into a
partitioned state. This way, we don't have the overhead every time that we deal
with timers but just when checkpointing.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---