Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20217

More fine-grained timer processing

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.2, 1.11.2, 1.12.0
    • Fix Version/s: None
    • Component/s: API / DataStream
    • Labels:
      None

      Description

      Timers are currently processed in one big block under the checkpoint lock (under InternalTimerServiceImpl#advanceWatermark. This can be problematic in a number of scenarios while doing checkpointing which would lead to checkpoints timing out (and even unaligned checkpoints would not help).

      If you have a huge number of timers to process when advancing the watermark and the task is also back-pressured, the situation may actually be worse since you would block on the checkpoint lock and also wait for buffers/credits from the receiver.

      I propose to make this loop more fine-grained so that it is interruptible by checkpoints, but maybe there is also some other way to improve here.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              NicoK Nico Kruber
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: