Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
stream: do cleanup when iterator is destroyed#42320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nodejs-github-bot merged 3 commits into nodejs:master from KhooHaoYit:stream-iterator-fixMar 16, 2022
Merged
stream: do cleanup when iterator is destroyed #42320
nodejs-github-bot merged 3 commits into nodejs:master from KhooHaoYit:stream-iterator-fixMar 16, 2022
Uh oh!
There was an error while loading. Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Collaborator
nodejs-github-bot commented Mar 13, 2022
Review requested:
|
ronag approved these changes Mar 13, 2022
mcollina requested changes Mar 13, 2022
Member
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a unit test?
Collaborator
nodejs-github-bot commented Mar 13, 2022
Member
benjamingr commented Mar 13, 2022
Linkgoron approved these changes Mar 13, 2022
benjamingr approved these changes Mar 13, 2022
28 tasks
jasnell approved these changes Mar 14, 2022
Collaborator
nodejs-github-bot commented Mar 14, 2022
20 tasks
mcollina approved these changes Mar 15, 2022
Member
mcollina left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Collaborator
nodejs-github-bot commented Mar 15, 2022
Commit Queue failed- Loading data for nodejs/node/pull/42320 ✔ Done loading data for nodejs/node/pull/42320 ----------------------------------- PR info ------------------------------------ Title stream: do cleanup when iterator is destroyed (#42320) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch KhooHaoYit:stream-iterator-fix -> nodejs:master Labels stream, commit-queue-squash Commits 3 - stream: do cleanup when iterator is destroyed - test: check for dangling listeners - test: enable no-unused-vars ESLint rule Committers 1 - Khoo Hao Yit <[email protected]> PR-URL: https://github.com/nodejs/node/pull/42320 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Nitzan Uziely Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/42320 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Nitzan Uziely Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 13 Mar 2022 11:59:44 GMT ✔ Approvals: 5 ✔ - Robert Nagy (@ronag) (TSC): https://github.com/nodejs/node/pull/42320#pullrequestreview-908129087 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/42320#pullrequestreview-910068802 ✔ - Nitzan Uziely (@linkgoron): https://github.com/nodejs/node/pull/42320#pullrequestreview-908140795 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/42320#pullrequestreview-908141108 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/42320#pullrequestreview-908891052 ✖ This PR needs to wait 15 more minutes to land ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-03-14T17:01:15Z: https://ci.nodejs.org/job/node-test-pull-request/43020/ - Querying data for job/node-test-pull-request/43020/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/1986430799 |
29 tasks
Collaborator
nodejs-github-bot commented Mar 16, 2022
Landed in 6d3920d |
38 tasks
bengl pushed a commit that referenced this pull request Mar 21, 2022
PR-URL: #42320 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Nitzan Uziely <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Merged
xtx1130 pushed a commit to xtx1130/node that referenced this pull request Apr 25, 2022
PR-URL: nodejs#42320 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Nitzan Uziely <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one. streamIssues and PRs related to the stream subsystem.
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.
When you create a
readable.iteratorfrom a stream withoptions.destroyOnReturnonfalse, the iterator doesn't do any cleanup when the iterator exits, causing it to add multiple listeners to the streamCode that reproduces the bug
Console output
Tested node version
v17.6.0onWindows 10andv18.0.0-pre @ b481beecd8