apache / apache/beam

Can not test Timer with processing time domain

Open
#19,081 0 comments 0 reactions 0 assignees View on GitHub
bug core direct P3 runners
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

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](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`

Imported from Jira [BEAM-5265](https://issues.apache.org/jira/browse/BEAM-5265). Original Jira may contain additional context.
Reported by: JozoVilcek.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.