FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fs: fix WriteStream autoClose order by ronag · Pull Request #31790 · nodejs/node · GitHub

/ node Public

fs: fix WriteStream autoClose order - #31790

Closed
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:fs-autoclose-order
Closed

fs: fix WriteStream autoClose order#31790
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:fs-autoclose-order

Conversation

ronag commented Feb 14, 2020

Copy link
Copy Markdown
Member

WriteStream autoClose was implemented by manually
calling .destroy() instead of using autoDestroy
and callback. This caused some invariants related
to order of events to be broken.

Fixes: #31776

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

ronag added the stream Issues and PRs related to the stream subsystem. label Feb 14, 2020
ronag requested a review from mcollina February 14, 2020 12:34
nodejs-github-bot added the fs Issues and PRs related to the fs subsystem / file system. label Feb 14, 2020
WriteStream autoClose was implemented by manually
calling .destroy() instead of using autoDestroy
and callback. This caused some invariants related
to order of events to be broken.

Fixes: nodejs#31776
ronag force-pushed the fs-autoclose-order branch from cf8e4bb to 4a9b795 Compare February 14, 2020 12:35

mcollina 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Copy link
Copy Markdown
Collaborator

ronag requested a review from addaleax February 14, 2020 12:55

ronag commented Feb 16, 2020

Copy link
Copy Markdown
Member Author

Landed in 568fdfb

ronag closed this Feb 16, 2020
ronag added a commit that referenced this pull request Feb 16, 2020
WriteStream autoClose was implemented by manually
calling .destroy() instead of using autoDestroy
and callback. This caused some invariants related
to order of events to be broken.

Fixes: #31776

PR-URL: #31790
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

ronag commented Feb 16, 2020

Copy link
Copy Markdown
Member Author

I believe the lts-watch label is appropriate on this PR. Please let me know if incorrect.

Copy link
Copy Markdown
Contributor

This doesn't land cleanly on v13.x could it please be backported

This comment has been minimized.

ronag added a commit to nxtedition/node that referenced this pull request Mar 10, 2020
WriteStream autoClose was implemented by manually
calling .destroy() instead of using autoDestroy
and callback. This caused some invariants related
to order of events to be broken.

Fixes: nodejs#31776

PR-URL: nodejs#31790
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Backport-PR-URL: nodejs#32163
MylesBorins pushed a commit that referenced this pull request Mar 11, 2020
WriteStream autoClose was implemented by manually
calling .destroy() instead of using autoDestroy
and callback. This caused some invariants related
to order of events to be broken.

Fixes: #31776

Backport-PR-URL: #32163
PR-URL: #31790
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins mentioned this pull request Mar 11, 2020
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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Writable stream is not immediatly closed after .destroy() call

7 participants


Back | FazBrowse Home | New Git URL