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

parallel/test-listen-fd-cluster is flaky #1931

Description

@jbergstroem

This test leaves trailing processes every now and then on our jenkins buildbots. Since a lot of tests reuses common.PORT, it will make following runs on that host fail.

When failing, it also times out, as seen on most hosts here: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/788/

Activity

  1. added
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Jun 9, 2015
  2. added
    clusterIssues and PRs related to the cluster subsystem.
    on Jun 9, 2015
  3. sam-github commented on Jun 10, 2015

    @sam-github
    Contributor

    The test has a few problems:

    • top-level exits immediately after killing its child (called "parent"), and the cluster master. This is a race, it can exit before the kills take effect. It should probably kill its direct child, then wait for it.
    • it doesn't effectively protect against child process leaking, it should attach an ipc control channel when it spawns the parent, and it spawns the master, so that those process can do process.on('disconnect', process.exit), preventing them living beyond their parent
    • it has one too many process, the "parent" seems wholly unnecessary

    I'll see if I can fix, I'm about to get on a plane.

  4. jbergstroem commented on Jul 8, 2015

    @jbergstroem
    MemberAuthor

    @sam-github we just found a similar behaviour in test-listen-fd-server. Would you mind having a look?

  5. sam-github commented on Aug 6, 2015

    @sam-github
    Contributor

    @jbergstroem, test-listen-fd-server.js was a duplicate of test-listen-fd-cluster.js, I pushed a rework of it onto #1944

  6. Trott commented on Aug 24, 2015

    @Trott
    Member

    Is this still an issue? Or was this fixed by @sam-github's commits on June 10?

  7. brendanashworth commented on Aug 29, 2015

    @brendanashworth
    Contributor

    I figure we can close this for now, we'll reopen if we see another failure.

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

    clusterIssues and PRs related to the cluster subsystem.testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions