Conversation
|
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
|
Assigning reviewers: R: @chamikaramj for label java. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
scwhittle
left a comment
There was a problem hiding this comment.
Sorry thought I replied this draft comment earlier
| currentTimeDomain = timeDomain; | ||
| doFnInvoker.invokeOnTimer(timerId, timerFamilyId, onTimerContext); | ||
| // Finalize state to ensure metrics and other state changes are committed. | ||
| this.stateAccessor.finalizeState(); |
There was a problem hiding this comment.
this is going to result in finalizeState being called multiple times if there are multiple timers.
But it also seems that this shouldn't be needed because finalizeState is already called in finishBundle. Is that not being called for some reason? The reported bug is old, have you verified that it is still present? If so adding a test that fails without a fix would be good.
There was a problem hiding this comment.
I haven't verified this and just want to create the PR to get some feedback from you. I noticed this.stateAccessor.finalizeState has been called in other places (e.g., sdks/java/harness/src/main/java/org/apache/beam/fn/harness/SplittableSplitAndSizeRestrictionsDoFnRunner.java) outside finishBundle. Not fully understand the code but want to put this PR out for some feedback first.
|
Reminder, please take a look at this pr: @chamikaramj |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @robertwb for label java. Available commands:
|
|
Reminder, please take a look at this pr: @robertwb |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @Abacn for label java. Available commands:
|
|
Reminder, please take a look at this pr: @Abacn |
|
Sounds good. Thanks for checking this. I will also close the issue. |
Fixes #29099
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.