Uh oh!
There was an error while loading. Please reload this page.
stream: fixes async iterator destroyed error propagation - #31314
Closed
ronag wants to merge 3 commits into
Closed
Conversation
ronag
commented
Jan 11, 2020
MemberAuthor
ping @nodejs/streams bug? |
ronagforce-pushed
the
fix-async-iterator-delayed-error
branch
3 times, most recently
from
January 11, 2020 12:44
8613847 to
4eaa164CompareThere was an edge case where if _destroy calls the error callback later than one tick the iterator would complete early and not propgate the error.
ronagforce-pushed
the
fix-async-iterator-delayed-error
branch
from
January 11, 2020 12:54
4eaa164 to
a09e59eCompareBridgeAR
approved these changes
Jan 11, 2020
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
commented
Jan 12, 2020
Collaborator
nodejs-github-bot
commented
Jan 12, 2020
Collaborator
Trott
approved these changes
Jan 13, 2020
JungMinu
approved these changes
Jan 13, 2020
jasnell
approved these changes
Jan 13, 2020
Trott pushed a commit
that referenced
this pull request
Jan 14, 2020
There was an edge case where if _destroy calls the error callback later than one tick the iterator would complete early and not propgate the error. PR-URL: #31314 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Trott
commented
Jan 14, 2020
Member
Landed in d15b8ea |
MylesBorins pushed a commit
that referenced
this pull request
Jan 16, 2020
There was an edge case where if _destroy calls the error callback later than one tick the iterator would complete early and not propgate the error. PR-URL: #31314 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
mcollina
commented
Jan 25, 2020
Member
Please do not backport this PR. It's causing a regression on a very simple usage of the async iterator: usestrict'
const{ Readable }=require('stream')constr=newReadable({read(){}})r.destroy()asyncfunctionrun(){forawait(letchunkofr){}}r.on('close',()=>{console.log('close emitted')run().then(()=>console.log('finished'))})I'll issue a revert and add a test for it. This is not easy to fix, as we do not have a |
3 tasks
mcollina added a commit
to mcollina/node
that referenced
this pull request
Jan 25, 2020
A test was missing for an async iterator created after the stream had emitted 'close'. This was regressed by nodejs#31314. See: nodejs#31314
4 tasks
Trott pushed a commit
that referenced
this pull request
Jan 29, 2020
A test was missing for an async iterator created after the stream had emitted 'close'. This was regressed by #31314. See: #31314 PR-URL: #31508 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
ronag added a commit
to nxtedition/node
that referenced
this pull request
Feb 8, 2020
There was an edge case where if _destroy calls the error callback later than one tick the iterator would complete early and not propgate the error. PR-URL: nodejs#31314 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
ronag added a commit
that referenced
this pull request
Feb 14, 2020
There was an edge case where if _destroy calls the error callback later than one tick the iterator would complete early and not propgate the error. PR-URL: #31314 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: #31700 Reviewed-By: Anna Henningsen <anna@addaleax.net>
codebytere pushed a commit
that referenced
this pull request
Feb 17, 2020
A test was missing for an async iterator created after the stream had emitted 'close'. This was regressed by #31314. See: #31314 PR-URL: #31508 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
targos pushed a commit
that referenced
this pull request
Apr 18, 2020
A test was missing for an async iterator created after the stream had emitted 'close'. This was regressed by #31314. See: #31314 PR-URL: #31508 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
There was an edge case where if _destroy calls the error callback
later than one tick the iterator would complete early and not
propgate the error.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes