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

Can not test Timer with processing time domain

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • runner-core, runner-direct
    • 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

              Unassigned Unassigned
              JozoVilcek Jozef Vilcek
              Votes:
              0 Vote for this issue
              Watchers:
              3 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