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

Can not test Timer with processing time domain

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: runner-core, runner-direct
    • Labels:
      None

      Description

      I have a stateful DoFn which has a timer on PROCESSING_TIME domain. While writing tests, I noticed that it does not react to `advanceProcessingTime()` on tests stream. Problem seems to be here:

      https://github.com/apache/beam/blob/master/runners/core-java/src/main/java/org/apache/beam/runners/core/SimpleDoFnRunner.java#L260

      I can only tell that patching this place works for direct runner tests. Not sure about broader impact on other runners since it is in `runner-core`

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                JozoVilcek Jozef Vilcek
                Reporter:
                JozoVilcek Jozef Vilcek
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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