Skip to content

Ensure CancellableQueue doesn't keep references to logically removed objects - #27403

Merged
Abacn merged 1 commit into
apache:masterfrom
scwhittle:CancellableQueue
Jul 9, 2023
Merged

Abacn merged 1 commit into
apache:masterfrom
scwhittle:CancellableQueue

Conversation

@scwhittle

@scwhittle scwhittle commented Jul 7, 2023 •

Copy link
Copy Markdown
Contributor

Keeping the references around means that memory usage can grow as the queue is reused, even if the queue is being drained regularly.

Fixes #27401


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: 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, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@github-actions github-actions Bot added the java label Jul 7, 2023
@github-actions

github-actions Bot commented Jul 7, 2023

Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@scwhittle scwhittle closed this Jul 7, 2023
@scwhittle scwhittle reopened this Jul 7, 2023
@scwhittle

Copy link
Copy Markdown
Contributor Author

R: @Abacn

test failures looked unrelated but rerunning

@github-actions

github-actions Bot commented Jul 7, 2023

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@Abacn

Abacn commented Jul 9, 2023

Copy link
Copy Markdown
Contributor

Tested this fix indeed eliminate the heavy memory usage by BeamFnApi$Element on Dataflow runner

@Abacn
Abacn merged commit e6cccde into apache:master Jul 9, 2023
Abacn pushed a commit to Abacn/beam that referenced this pull request Jul 9, 2023
aleksandr-dudko pushed a commit to aleksandr-dudko/beam that referenced this pull request Jul 10, 2023
Abacn added a commit that referenced this pull request Jul 10, 2023
…objects. (#27403) (#27419)

Co-authored-by: scwhittle <scwhittle@users.noreply.github.com>
aleksandr-dudko pushed a commit to aleksandr-dudko/beam that referenced this pull request Jul 17, 2023
@scwhittle
scwhittle deleted the CancellableQueue branch July 25, 2023 23:05
cushon pushed a commit to cushon/beam that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CancellableQueue keeps references to elements when cancelled and reset

2 participants