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

stream: use RangeError for broadcast overflow by trivikr · Pull Request #64420 · nodejs/node · GitHub

/ node Public

stream: use RangeError for broadcast overflow - #64420

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-broadcast-strict-backpressure-overflow
Jul 24, 2026
Merged

stream: use RangeError for broadcast overflow#64420
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-broadcast-strict-backpressure-overflow

Conversation

trivikr commented Jul 11, 2026

Copy link
Copy Markdown
Member

Fixes: #64419

Broadcast writers using the strict backpressure policy currently reject
with ERR_INVALID_STATE as a TypeError when the pending writes queue
overflows.

This change uses ERR_INVALID_STATE.RangeError, matching the existing
push writer behavior, and adds regression coverage for the error type and code.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels Jul 11, 2026
trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 11, 2026
trivikr force-pushed the stream-iter-broadcast-strict-backpressure-overflow branch from 46a1376 to e37419d Compare July 11, 2026 07:26

codecov Bot commented Jul 11, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.12%. Comparing base (3437feb) to head (3926e22).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64420      +/-   ##
==========================================
- Coverage   90.13%   90.12%   -0.02%     
==========================================
  Files         741      741              
  Lines      242158   242158              
  Branches    45608    45610       +2     
==========================================
- Hits       218265   218236      -29     
- Misses      15361    15415      +54     
+ Partials     8532     8507      -25     
Files with missing lines Coverage Δ
lib/internal/streams/iter/broadcast.js 87.74% <100.00%> (+1.50%) ⬆️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

bjohansebas 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!

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 19, 2026

This comment was marked as outdated.

This comment was marked as outdated.

trivikr added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jul 20, 2026

This comment was marked as outdated.

bjohansebas added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 21, 2026
trivikr removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 21, 2026

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

trivikr marked this pull request as draft July 22, 2026 05:18

This comment was marked as outdated.

Reject strict-backpressure writes with a RangeError when the broadcast
pending writes queue is full.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
trivikr force-pushed the stream-iter-broadcast-strict-backpressure-overflow branch from e37419d to 3926e22 Compare July 23, 2026 13:02
trivikr marked this pull request as ready for review July 23, 2026 13:02
trivikr requested a review from jasnell July 23, 2026 13:02
trivikr added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no outstanding review comments, and a CI started. and removed author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Jul 23, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 23, 2026

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

trivikr added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 24, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 24, 2026
nodejs-github-bot merged commit e383a1d into nodejs:main Jul 24, 2026
97 checks passed

Copy link
Copy Markdown
Collaborator

Landed in e383a1d

aduh95 pushed a commit that referenced this pull request Jul 30, 2026
Reject strict-backpressure writes with a RangeError when the broadcast
pending writes queue is full.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
PR-URL: #64420
Fixes: #64419
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
trivikr deleted the stream-iter-broadcast-strict-backpressure-overflow branch July 31, 2026 04:30
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Reject strict-backpressure writes with a RangeError when the broadcast
pending writes queue is full.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
PR-URL: #64420
Fixes: #64419
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
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

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. 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.

stream/iter: broadcast strict-backpressure overflow rejects with TypeError instead of RangeError

5 participants


Back | FazBrowse Home | New Git URL