-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Conversation
This reverts commit d3f02d0. Fixes: nodejs#24456
The issue was resolved by reverting d3f02d0.
Fixes: #24456 |
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 |
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 ... |
@Trott I think you’d need to revert more than one PR… this would definitely be unfortunate :/ |
Plus, this shouldn’t get a |
Applied WIP label as this should not land, certainly not as-is. :-( |
Closing in favor of #24926. |
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), orvcbuild test
(Windows) passes