-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
flaky test-http-server-keepalive-req-gc.js #29344
Comments
@nodejs/platform-smartos @nodejs/build |
FWIW, this failure is definitely not specific to SmartOS. I just observed the same failures on macOS while developing a test for #29288. |
I think @mcollina mentioned seeing it on macOS too. It's definitely occurring more often on SmartOS in CI, but that could very easily be more about (for example) resources that the hosts are provisioned with than OS.... |
For those who can reproduce locally (I am unable on Linux): Could you maybe add this and share the resulting snapshot?
|
I'm able to reproduce reliably on macOS with this:
For other people trying to get a heap snapshot: Adding the above
|
@Trott Could you share the heap snapshot? And thanks for fixing that :) |
Yeah, trying to figure out where to upload them. |
@Trott Okay, it looks like the req object is not part of the heap snapshot, meaning it has likely been gc’ed, but we didn’t get the notification – Does adding a dummy |
Alternatively, what would be a good platform to debug this on in CI? |
No. Nor does changing |
I think I have a solution. PR coming momentarily. |
Proposed fix in #29347. Works for me locally. |
Use `server` to keep the event loop open until the `ongc` listener runs. Fixes: nodejs#29344
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27655/console
Others:
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27653/console
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27651/console
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27649/console
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27648/console
https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos18-64/27647/console
The text was updated successfully, but these errors were encountered: