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

Flink user state GC depends on order of timer firing

Details

    • Bug
    • Status: Resolved
    • P0
    • Resolution: Fixed
    • 0.5.0
    • 0.6.0
    • runner-flink
    • None

    Description

      The newly added ParDoTest.testEventTimeTimerMultipleKeys() fails because the DoFn sets a timer for window.maxTimestamp() which also happens to be the GC timer for the user state. The Flink Runner uses timers to schedule GC, the user-set timer and the GC timer have a different timer id, so they don't clash. However, if the GC timer is being processed before the user timer then the user doesn't have a chance to access the state anymore because it will already be cleared out by the time the user timer is being processed.

      Attachments

        Activity

          People

            aljoscha Aljoscha Krettek
            aljoscha Aljoscha Krettek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: