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

stream: fix highwatermark threshold and add the missing error #38700

Closed
wants to merge 1 commit into from

Conversation

@pd4d10
Copy link
Contributor

@pd4d10 pd4d10 commented May 16, 2021

  1. Fix highwatermark threshold: < 1GiB -> <= 1GiB, doc here
  2. Add the missing error: Size out of range
@pd4d10
Copy link
Contributor Author

@pd4d10 pd4d10 commented May 16, 2021

Considering that the 2nd is a semver major, do I need to move the 1st to a seperated PR?

Copy link
Member

@mcollina mcollina left a comment

lgtm

@mcollina
Copy link
Member

@mcollina mcollina commented May 18, 2021

Considering that the 2nd is a semver major, do I need to move the 1st to a seperated PR?

It's probably better to.

@pd4d10
Copy link
Contributor Author

@pd4d10 pd4d10 commented May 18, 2021

Considering that the 2nd is a semver major, do I need to move the 1st to a seperated PR?

After a closer look, it seems unnecessary to make another PR. >= and > both work fine here.

if (n >= MAX_HWM) {
// TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.
n = MAX_HWM;

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@mcollina
Copy link
Member

@mcollina mcollina commented May 26, 2021

I think this needs a rebase against master.

@pd4d10 pd4d10 force-pushed the pd4d10:patch-stream-highwatermark branch from 2fbbc9f to e45be56 May 26, 2021
@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot

This comment has been hidden.

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Jul 4, 2021

@aduh95
aduh95 approved these changes Sep 3, 2021
@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Sep 3, 2021

Can you please rebase to fix the git conflict?

@pd4d10 pd4d10 force-pushed the pd4d10:patch-stream-highwatermark branch from e45be56 to dbba797 Sep 4, 2021
1. Fix highwatermark threshold: `< 1GiB` -> `<= 1GiB`
2. Add the missing error: Size out of range

Update test/parallel/test-streams-highwatermark.js

Co-authored-by: Darshan Sen <raisinten@gmail.com>
@pd4d10 pd4d10 force-pushed the pd4d10:patch-stream-highwatermark branch from dbba797 to 0d5c202 Sep 4, 2021
Copy link
Member

@mcollina mcollina left a comment

lgtm

@github-actions
Copy link

@github-actions github-actions bot commented Sep 7, 2021

Commit Queue failed
- Loading data for nodejs/node/pull/38700
✔  Done loading data for nodejs/node/pull/38700
----------------------------------- PR info ------------------------------------
Title      stream: fix highwatermark threshold and add the missing error (#38700)
Author     Rongjian Zhang  (@pd4d10)
Branch     pd4d10:patch-stream-highwatermark -> nodejs:master
Labels     stream, semver-major, needs-citgm
Commits    1
 - stream: fix highwatermark threshold and add the missing error
Committers 1
 - Rongjian Zhang 
PR-URL: https://github.com/nodejs/node/pull/38700
Reviewed-By: Matteo Collina 
Reviewed-By: James M Snell 
Reviewed-By: Antoine du Hamel 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/38700
Reviewed-By: Matteo Collina 
Reviewed-By: James M Snell 
Reviewed-By: Antoine du Hamel 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 16 May 2021 13:51:24 GMT
   ✔  Approvals: 3
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/38700#pullrequestreview-747718670
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/38700#pullrequestreview-666844368
   ✔  - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/38700#pullrequestreview-746121508
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-07-04T05:51:52Z: https://ci.nodejs.org/job/node-test-pull-request/38840/
   ⚠  Commits were pushed after the last Full PR CI run:
   ⚠  - stream: fix highwatermark threshold and add the missing error
- Querying data for job/node-test-pull-request/38840/
✔  Build data downloaded
- Querying failures of job/node-test-commit/47512/
✔  Data downloaded
   ✖  10 failure(s) on the last Jenkins CI run
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1208763201

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Sep 7, 2021

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Sep 7, 2021

@github-actions
Copy link

@github-actions github-actions bot commented Sep 7, 2021

Landed in b016d5d...0c6f345

@github-actions github-actions bot closed this Sep 7, 2021
nodejs-github-bot added a commit that referenced this pull request Sep 7, 2021
1. Fix highwatermark threshold: `< 1GiB` -> `<= 1GiB`
2. Add the missing error: Size out of range

Update test/parallel/test-streams-highwatermark.js

Co-authored-by: Darshan Sen <raisinten@gmail.com>

PR-URL: #38700
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@pd4d10 pd4d10 deleted the pd4d10:patch-stream-highwatermark branch Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants