test-http2-client-jsstream-destroy.js write after a stream was destroyedΒ #36078
Copy link
Copy link
Closed
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.http2Issues and PRs related to the http2 subsystem.Issues and PRs related to the http2 subsystem.
Description
- Test: test-http2-client-jsstream-destroy
- Platform: OSX
- Console Output:
node:events:306
throw er; // Unhandled 'error' event
^
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at new NodeError (node:internal/errors:277:15)
at TLSSocket.Writable.write (node:internal/streams/writable:324:11)
at JSSocket._write (/Users/iojs/build/workspace/node-test-commit-osx/nodes/osx1015/test/parallel/test-http2-client-jsstream-destroy.js:25:17)
at doWrite (node:internal/streams/writable:407:12)
at clearBuffer (node:internal/streams/writable:566:7)
at JSSocket.Writable.uncork (node:internal/streams/writable:347:7)
at JSStreamSocket.doWrite (node:internal/js_stream_socket:176:17)
at JSStream.onwrite (node:internal/js_stream_socket:33:57)
Emitted 'error' event on ClientHttp2Stream instance at:
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:80:21) {
code: 'ERR_STREAM_DESTROYED'
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.http2Issues and PRs related to the http2 subsystem.Issues and PRs related to the http2 subsystem.
Activity
[-]Cannot call write after a stream was destroyed[/-][+]test-http2-client-jsstream-destroy.js write after a stream was destroyed[/+]Trott commentedon Nov 15, 2020
Happened again on macOS in CI:
Trott commentedon Nov 15, 2020
Finding this very easy to reproduce locally with this:
Trott commentedon Nov 15, 2020
Proposed fix in #36129.
test: make test-http2-client-jsstream-destroy.js reliable
test: make test-http2-client-jsstream-destroy.js reliable
test: make test-http2-client-jsstream-destroy.js reliable
test: make test-http2-client-jsstream-destroy.js reliable
test: make test-http2-client-jsstream-destroy.js reliable