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

stream: fix deadlock when pipeing to full sink by ronag · Pull Request #48691 · nodejs/node · GitHub

/ node Public

stream: fix deadlock when pipeing to full sink - #48691

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
nxtedition:fix-pipe-deadlock
Jul 12, 2023
Merged

stream: fix deadlock when pipeing to full sink #48691
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
nxtedition:fix-pipe-deadlock

Conversation

ronag commented Jul 7, 2023
edited
Loading

Copy link
Copy Markdown
Member

When piping a paused Readable to a full Writable we didn't register a drain listener which cause the src to never resume.

Refs: #48666

ronag added the stream Issues and PRs related to the stream subsystem. label Jul 7, 2023
ronag force-pushed the fix-pipe-deadlock branch from 997d680 to 30c3b22 Compare July 7, 2023 12:08

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jul 7, 2023
ronag requested review from lpinca and mcollina July 7, 2023 12:09
ronag force-pushed the fix-pipe-deadlock branch 2 times, most recently from 07ade06 to f11c61f Compare July 7, 2023 12:12
Comment thread lib/internal/streams/readable.js Outdated
ronag force-pushed the fix-pipe-deadlock branch from f11c61f to 0ef9f0e Compare July 7, 2023 12:26
lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 8, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 8, 2023

Copy link
Copy Markdown
Collaborator

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

mcollina commented Jul 9, 2023

Copy link
Copy Markdown
Member

@ronag could you fix the commit message?

This comment was marked as resolved.

ronag added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2023

Copy link
Copy Markdown
Collaborator

When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: nodejs#48666
PR-URL: nodejs#48691
ronag force-pushed the fix-pipe-deadlock branch from 0ef9f0e to 74ee978 Compare July 10, 2023 07:38
ronag added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 10, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 10, 2023

Copy link
Copy Markdown
Collaborator

ronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 10, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 10, 2023
nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jul 10, 2023

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/48691
✔  Done loading data for nodejs/node/pull/48691
----------------------------------- PR info ------------------------------------
Title      stream: fix deadlock when pipeing to full sink  (#48691)
Author     Robert Nagy  (@ronag)
Branch     ronag:fix-pipe-deadlock -> nodejs:main
Labels     stream, needs-ci
Commits    1
 - stream: fix deadlock when pipeing to full sink
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/48691
Refs: https://github.com/nodejs/node/issues/48666
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Luigi Pinca 
Reviewed-By: Matteo Collina 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/48691
Refs: https://github.com/nodejs/node/issues/48666
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Luigi Pinca 
Reviewed-By: Matteo Collina 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - stream: fix deadlock when pipeing to full sink
   ℹ  This PR was created on Fri, 07 Jul 2023 12:08:43 GMT
   ✔  Approvals: 3
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/48691#pullrequestreview-1518738423
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/48691#pullrequestreview-1518877825
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/48691#pullrequestreview-1520765659
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2023-07-10T08:08:41Z: https://ci.nodejs.org/job/node-test-pull-request/52681/
- Querying data for job/node-test-pull-request/52681/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/5512507137

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

lpinca added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Jul 12, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 12, 2023
nodejs-github-bot merged commit b34c5a2 into nodejs:main Jul 12, 2023

Copy link
Copy Markdown
Collaborator

Landed in b34c5a2

juanarbol pushed a commit that referenced this pull request Jul 13, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: #48666
PR-URL: #48691
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
juanarbol mentioned this pull request Jul 13, 2023

kanongil commented Jul 31, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Any plans to backport? Technically, the exact same patch should apply cleanly.

Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: nodejs#48666
PR-URL: nodejs#48691
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: nodejs#48666
PR-URL: nodejs#48691
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>

Copy link
Copy Markdown
Contributor

Can we at least backport this to v18?

kanongil pushed a commit to kanongil/node-1 that referenced this pull request Aug 25, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: nodejs#48666
PR-URL: nodejs#48691
Backport-PR-URL: nodejs#49323
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
ruyadorno pushed a commit that referenced this pull request Sep 8, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: #48666
PR-URL: #48691
Backport-PR-URL: #49323
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
ruyadorno mentioned this pull request Sep 8, 2023
ruyadorno pushed a commit that referenced this pull request Sep 13, 2023
When piping a paused Readable to a full Writable we didn't
register a drain listener which cause the src to never
resume.

Refs: #48666
PR-URL: #48691
Backport-PR-URL: #49323
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL