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

Dataflow streaming timers are not strictly time ordered when set earlier mid-bundle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Triage Needed
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 2.13.0
    • Fix Version/s: 2.24.0
    • Component/s: runner-dataflow
    • Labels:
      None

      Description

      Let's suppose we have the following situation:

      • statful ParDo with two timers - timerA and timerB
      • timerA is set for window.maxTimestamp() + 1
      • timerB is set anywhere between <windowStart, windowEnd), let's denote that timerB.timestamp
      • input watermark moves to BoundedWindow.TIMESTAMP_MAX_VALUE

      Then the order of timers is as follows (correct):

      • timerB
      • timerA

      But, if timerB sets another timer (say for timerB.timestamp + 1), then the order of timers will be:

      • timerB (timerB.timestamp)
      • timerA (BoundedWindow.TIMESTAMP_MAX_VALUE)
      • timerB (timerB.timestamp + 1)

      Which is not ordered by timestamp. The reason for this is that when the input watermark update is evaluated, the WatermarkManager,extractFiredTimers() will produce both timerA and timerB. That would be correct, but when timerB sets another timer, that breaks this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rehmanmuradali Rehman Murad Ali
                Reporter:
                janl Jan Lukavsk√Ĺ
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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