Skip to content
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

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

Closed
jbergstroem opened this issue Jun 9, 2015 · 5 comments
Closed

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

jbergstroem opened this issue Jun 9, 2015 · 5 comments
Labels
cluster Issues and PRs related to the cluster subsystem. test Issues and PRs related to the tests.

Comments

@jbergstroem
Copy link
Member

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/

@jbergstroem jbergstroem added the test Issues and PRs related to the tests. label Jun 9, 2015
@mscdex mscdex added the cluster Issues and PRs related to the cluster subsystem. label Jun 9, 2015
@sam-github
Copy link
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.

@jbergstroem
Copy link
Member Author

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

@sam-github
Copy link
Contributor

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

@Trott
Copy link
Member

Trott commented Aug 24, 2015

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

@brendanashworth
Copy link
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
Labels
cluster Issues and PRs related to the cluster subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants