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

AfterWatermark can leak state for the late trigger when merging windows

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.26.0
    • runner-core
    • None

    Description

      AfterWatermarkStateMachine attempts to clear the late trigger state when merging and the early trigger is not closed in some windows. However it appears to clear the state corresponding to the new window, not all of the states for the input windows. This leaks the state which can lead to unbounded pipeline state buildup.

      https://github.com/apache/beam/blob/68d6c8e6243b1d8f392840273f886276e2a8baff/runners/core-java/src/main/java/org/apache/beam/runners/core/triggers/AfterWatermarkStateMachine.java#L133

      Attachments

        Issue Links

          Activity

            People

              scwhittle Sam Whittle
              scwhittle Sam Whittle
              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 - 40m
                  40m