Skip to content
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

Revert "stream: prevent 'end' to be emitted after 'error'" #20449

Closed
wants to merge 1 commit into from

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented May 1, 2018

Fixes: #20334

CI: https://ci.nodejs.org/job/node-test-pull-request/14609/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label May 1, 2018
@mscdex
Copy link
Contributor Author

mscdex commented May 1, 2018

FWIW I'm targeting master here because I think we need a better plan on how to more easily transition existing code (e.g. replacing existing uses of 'end' with some other event that acts as a "error or not" end event, such as 'close' or similar as I suggested in the referenced issue).

@mscdex
Copy link
Contributor Author

mscdex commented May 1, 2018

/cc @nodejs/streams

@mcollina
Copy link
Member

mcollina commented May 1, 2018

I’m -1 to land this on master. I’m +1 to land this on node 10.0.0.

@mscdex
Copy link
Contributor Author

mscdex commented May 4, 2018

/cc @nodejs/collaborators

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I'll redo the PR.

Ref: #20503.

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 5, 2018
@addaleax
Copy link
Member

addaleax commented May 6, 2018

@mcollina I’d really really like to not get in a habit of reverting commits only on release branches – if there is breakage that is significant enough to revert something, then we should try to keep master clear of that as well imo.

Edit: Removing the author ready label because there was a -1 on landing this on its target branch.

@addaleax addaleax removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 6, 2018
@mscdex
Copy link
Contributor Author

mscdex commented May 7, 2018

@mcollina I'm confused a bit with your explicit approval. Does that mean you are no longer -1 on landing this on master?

@mcollina
Copy link
Member

mcollina commented May 7, 2018

Yes exactly. I’ll resend the PR as soon as this land, but we need to revert it in 10 (it seems this causes some other issues). I agree this was rushed in.

@addaleax addaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 7, 2018
@addaleax
Copy link
Member

addaleax commented May 7, 2018

Landed in 8f6ab9f

@addaleax addaleax closed this May 7, 2018
addaleax pushed a commit that referenced this pull request May 7, 2018
This reverts commit 0857790.

PR-URL: #20449
Fixes: #20334
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@ronag
Copy link
Member

ronag commented May 7, 2018

@addaleax re-open open v11?

@addaleax
Copy link
Member

addaleax commented May 7, 2018

@ronag As I understand it, @mcollina said that he’d open another fix for the original issue. Re-opening PRs doesn’t work always well with our release tooling, unfortunately.

mcollina added a commit to mcollina/node that referenced this pull request May 7, 2018
This reverts commit 8f6ab9f.

This PR adds _readableState.errorEmitted and add the tracking of it.

Fixes: nodejs#6083
See: nodejs#20334
See: nodejs#20449
@mcollina
Copy link
Member

mcollina commented May 7, 2018

Done in #20571.

@mscdex mscdex deleted the revert-20104 branch May 7, 2018 12:37
MylesBorins pushed a commit that referenced this pull request May 8, 2018
This reverts commit 0857790.

PR-URL: #20449
Fixes: #20334
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@MylesBorins MylesBorins mentioned this pull request May 8, 2018
MylesBorins pushed a commit that referenced this pull request May 8, 2018
This reverts commit 0857790.

PR-URL: #20449
Fixes: #20334
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
MylesBorins pushed a commit that referenced this pull request May 9, 2018
This reverts commit 0857790.

PR-URL: #20449
Fixes: #20334
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants