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

Garbage collect user state in Flink Runner

Details

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

    Description

      User facing state/timers in Beam are bound to the key/window of the data. Right now, the Flink Runner does not clean up user state when the watermark passes the GC horizon for the state associated with a given window.

      Neither StateInternals nor the Flink state API support discarding state for a whole namespace (which is the window in this case) so we might have to manually set a GC timer for each window/key combination, as is done in the ReduceFnRunner. For this we have to know all states a user can possibly use, which we can get from the DoFn signature.

      Attachments

        Issue Links

          Activity

            People

              lzljs3620320 Jingsong Lee
              aljoscha Aljoscha Krettek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: