Fetch buffer and add it to pcoll_buffer to avoid element duplication when buffer is None #27676
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initial attempt was made at #27373 to solve #25315, #23228 but it resulted in failures in google3.
I missed the step of adding the ListBuffer to pcoll_buffers and buffer_id to buffers_to_clean to clean up the buffers in the later stages. Without this, sometimes the elements in the PColl gets duplicated.
With this PR, I am running a TAP train to see if the tests in google3 passes -. TAP train passes: https://fusion2.corp.google.com/presubmit/551096614/OCL:551096614:BASE:551101442:1690371932534:fe032276/targets
Fixes: #25315
Fixes: #23228
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.md
with 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.