Sitelet https://github.com/nodejs/node/issues/41399
Skip to content

Investigate flaky test - test-gc-http-client-onerror.js #41399

Description

@mhdawson

Test

test-gc-http-client-onerror.js

Platform

freebsd

Console output

/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd12-x64/test/parallel/test-gc-http-client-onerror.js:50
  throw err;
  ^

Error: connect ECONNRESET 127.0.0.1:10490 - Local (127.0.0.1:20028)
    at internalConnect (node:net:931:16)
    at defaultTriggerAsyncIdScope (node:internal/async_hooks:465:18)
    at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1075:9)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:74:8) {
  errno: -54,
  code: 'ECONNRESET',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 10490
}

Node.js v18.0.0-pre

Build links

Additional information

No response

Activity

  1. added
    flaky-testIssues and PRs involving tests that fail intermittently in CI.
    on Jan 4, 2022
  2. added
    httpIssues and PRs related to the http subsystem.
    on Jan 4, 2022
  3. lpinca commented on Jan 17, 2022

    @lpinca
    Member

    I can reproduce this by running

    ./tools/test.py --repeat=1000 test/parallel/test-gc-http-client-onerror
    

    on macOS (16 parallel tasks) but I cannot reproduce it on Windows and Linux (8 parallel tasks).

    I can make the test pass reliably on macOS by reducing parallelism, the duration of the TIME_WAIT state, and increasing the number ephemeral ports.

    sudo sysctl -w net.inet.ip.portrange.first=32768
    sudo sysctl net.inet.tcp.msl=1000
    ./tools/test.py -j5 --repeat=1000 test/parallel/test-gc-http-client-onerror
    

    I wonder if it makes sense to move it to sequential like it was done for its companion test-gc-http-client.js in 7d03ff1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs involving tests that fail intermittently in CI.httpIssues and PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions