Open y1chi opened 1 year ago
Changing to P1 since this sounds like a potential correctness issue.
@y1chi @kennknowles any idea regarding the fix ?
Agree with P1. I don't immediately know the fix. Was it just forgotten in the implementation?
The Counter logic seems pretty complicated. I suspect there is a missing piece in FnApiDoFnRunner to update the counter containers when the onTimer invocation happens https://github.com/apache/beam/blob/ffb43321a0a4a646c6568336b8fba5787b1b64a0/sdks/java/harness/src/main/java/org/apache/beam/fn/harness/FnApiDoFnRunner.java#L1743
Not 100% sure this is related, but with my pipeline I have a problem where @ OnTimer("loopingTimer") is not triggered when upgraded to 2.52.0. my pipeline is pretty similar in logic to: https://beam.apache.org/blog/looping-timers/ , while it is working on 2.51.0.
@yardenbm I don't think it is related. This bug is much older than that, and the execution does not depend on counters. Can you file a new bug for your issue so we can get details and track it?
What happened?
This can be re-produced with simple DoFn with user counters, the updates in counters in processElement are populated properly to MointoringInfos when sending back ProcessBundleInstructionResponse, however the counters in onTimer callback are not recorded.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components