Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11435

Reuse already set timers instead of recreating them in Flink Streaming Runner

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • 2.23.0, 2.24.0, 2.25.0
    • 2.27.0
    • runner-flink
    • None

    Description

      When we re-set a timer, new timer goes trough following life-cycle:
      1) Find previously set timer with the same id
      2) Cancel any previously set timer with the same id
      3) Set a new timer

      We can skip 2) and 3), if the new timer is the same as previously set timer. There should be a great performance impact on GC timers, especially with RocksDB backend, where 2) and 3) are expensive operations.

      Attachments

        Issue Links

          Activity

            People

              dmvk David Morávek
              dmvk David Morávek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m