Skip to content

stream: fix multiple Writable.destroy() calls. - #38221

Closed
ronag wants to merge 3 commits into
nodejs:masterfrom
nxtedition:fix-38189
Closed

stream: fix multiple Writable.destroy() calls.#38221
ronag wants to merge 3 commits into
nodejs:masterfrom
nxtedition:fix-38189

Conversation

@ronag

Copy link
Copy Markdown
Member

Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.

Fixes: #38189

Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: nodejs#38189
@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Apr 12, 2021
@ronag
ronag requested review from lpinca and mcollinaApril 12, 2021 22:56
@ronag

Copy link
Copy Markdown
MemberAuthor

@nodejs/streams

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@ronagronag added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 13, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@benjamingr

Copy link
Copy Markdown
Member

@Linkgoron

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnell

Copy link
Copy Markdown
Member

@ronag ... looks like this has a linter issue

@jasnelljasnell removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 14, 2021
@ronag

Copy link
Copy Markdown
MemberAuthor

Just needs another CI run.

@ronagronag added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 14, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ronag

Copy link
Copy Markdown
MemberAuthor

Landed in 369f239

@ronagronag closed this Apr 16, 2021
ronag added a commit that referenced this pull request Apr 16, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: #38189
PR-URL: #38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@danielleadams

Copy link
Copy Markdown
Contributor

@ronag do you mind opening a Backport PR for this for v14.x-staging? The test-writable-stream-destroy tests when I try to pull it in. Thank you!

@ronag

Copy link
Copy Markdown
MemberAuthor

@danielleadams#38473

ronag added a commit to nxtedition/node that referenced this pull request Apr 29, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: nodejs#38189
PR-URL: nodejs#38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: nodejs#38473
targos pushed a commit that referenced this pull request May 30, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: #38189
PR-URL: #38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: #38473
targos pushed a commit that referenced this pull request Jun 5, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: #38189
PR-URL: #38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: #38473
targos pushed a commit that referenced this pull request Jun 5, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: #38189
PR-URL: #38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: #38473
@targostargos mentioned this pull request Jun 6, 2021
targos pushed a commit that referenced this pull request Jun 11, 2021
Calling Writable.destroy() multiple times in the same tick
could cause an assertion error.
Fixes: #38189
PR-URL: #38221
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Backport-PR-URL: #38473
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reproductible ERR_INTERNAL_ASSERTION on node 15

10 participants

@ronag@nodejs-github-bot@benjamingr@jasnell@danielleadams@mcollina@Trott@Linkgoron@lpinca@targos