Uh oh!
There was an error while loading. Please reload this page.
stream: always invoke end(cb) callback - #29747
Conversation
e57bf46 to
a7008cdCompare64bf430 to
9a45936Comparenodejs-github-bot
commented
Sep 28, 2019
nodejs-github-bot
commented
Oct 1, 2019
Trott
commented
Oct 1, 2019
@nodejs/streams |
mcollina
left a comment
There was a problem hiding this comment.
LGTM, out of precaution I would mark this semver-major.
Trott
commented
Oct 1, 2019
CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2022/ (queued) |
mcollina
commented
Oct 2, 2019
I'm worried about https://www.npmjs.com/package/csv-parser failing on CITGM |
csv-parser fails in all recent CITGM runs. It's not related to this change |
mcollina
left a comment
There was a problem hiding this comment.
This change has an interesting side effect, and I think we should try to avoid it. Calling stream.end('hello', cb) is going to prevent the error to bubble up to 'uncaughtException' if there are no other 'error' handlers.
You might want to re-emit the error if there are no other 'error' listeners.
ronag
commented
Oct 2, 2019
Excellent point. I'll take care of it. |
1c093e6 to
35f00acCompareTrott
commented
Oct 2, 2019
For anyone following along in the conversation: csv-parser should be fixed by sindresorhus/execa#370 and is indeed unrelated to these changes |
ronag
commented
Oct 6, 2019
Found another case where the callback is not called. Fixed. |
nodejs-github-bot
commented
Oct 11, 2019
Trott
commented
Oct 11, 2019
Relevant test failures in test.parallel/test-stream-transform-final-sync and test.parallel/test-stream-transform-final. |
ronag
commented
Oct 11, 2019
@Trott: My mistake. Should be fixed now. |
nodejs-github-bot
commented
Oct 12, 2019
mcollina
commented
Oct 15, 2019
@nodejs/tsc this needs some review |
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
@Trott: This needs TSC review (see Matteo's comment)? Can we put tsc label on this or how does that work? |
Trott
commented
Nov 12, 2019
I think @mcollina just meant that this is |
nodejs-github-bot
commented
Nov 12, 2019
Trott
commented
Nov 12, 2019
nodejs-github-bot
commented
Nov 15, 2019
Ensure that the callback passed into end() is always invoke in order to avoid bug such as deadlock the user. PR-URL: #29747 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
addaleax
commented
Nov 19, 2019
Landed in 9d09969 |
Ensure that the callback passed into end() is always invoked in order to avoid bug such as deadlock the user.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes