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

Revert "stream: make .destroy() interact better with write queue" #24905

Closed
wants to merge 2 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Dec 8, 2018

The reverted commit introduced (or greatly exacerbated) the unreliability of test-stream-pipeline-http2. Would be happy to see a fix, but in absence of that, a revert seems in order.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Dec 8, 2018
@Trott Trott requested a review from addaleax December 8, 2018 14:27
@Trott
Copy link
Member Author

Trott commented Dec 8, 2018

@Trott
Copy link
Member Author

Trott commented Dec 8, 2018

Fixes: #24456

@Trott
Copy link
Member Author

Trott commented Dec 8, 2018

Stress test on master: https://ci.nodejs.org/job/node-stress-single-test/2122/

Stress test on this PR: https://ci.nodejs.org/job/node-stress-single-test/2123/

In both cases:

RUN_TESTS: -j1 parallel/test-stream-pipeline
RUN_TIMES: 200
RUN_LABEL: win2008r2-vs2017

@Trott
Copy link
Member Author

Trott commented Dec 8, 2018

Failure on macOS in CI seems relevant. Maybe this exchanges one flaky test for another...

06:52:42 not ok 1867 parallel/test-tls-hello-parser-failure
06:52:42   ---
06:52:42   duration_ms: 0.220
06:52:42   severity: fail
06:52:42   exitcode: 1
06:52:42   stack: |-
06:52:42     events.js:174
06:52:42           throw er; // Unhandled 'error' event
06:52:42           ^
06:52:42     
06:52:42     Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
06:52:42         at doWrite (_stream_writable.js:411:19)
06:52:42         at clearBuffer (_stream_writable.js:545:7)
06:52:42         at onwrite (_stream_writable.js:470:7)
06:52:42         at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:61:12)
06:52:42     Emitted 'error' event at:
06:52:42         at errorOrDestroy (internal/streams/destroy.js:98:12)
06:52:42         at onwriteError (_stream_writable.js:430:5)
06:52:42         at onwrite (_stream_writable.js:461:5)
06:52:42         at doWrite (_stream_writable.js:411:11)
06:52:42         at clearBuffer (_stream_writable.js:545:7)
06:52:42         at onwrite (_stream_writable.js:470:7)
06:52:42         at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:61:12)
06:52:42   ...

@addaleax
Copy link
Member

addaleax commented Dec 8, 2018

@Trott I think you’d need to revert more than one PR… this would definitely be unfortunate :/

@addaleax
Copy link
Member

addaleax commented Dec 8, 2018

Plus, this shouldn’t get a Fixes: label, chances are that this would hide a real bug in the HTTP/2 implementation.

@Trott Trott added the wip Issues and PRs that are still a work in progress. label Dec 8, 2018
@Trott
Copy link
Member Author

Trott commented Dec 8, 2018

Applied WIP label as this should not land, certainly not as-is. :-(

@addaleax addaleax added the blocked PRs that are blocked by other issues or PRs. label Dec 10, 2018
@Trott
Copy link
Member Author

Trott commented Dec 12, 2018

Closing in favor of #24926.

@Trott Trott closed this Dec 12, 2018
@Trott Trott deleted the lotsa branch January 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked PRs that are blocked by other issues or PRs. stream Issues and PRs related to the stream subsystem. wip Issues and PRs that are still a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants