GeezerVison is showing github.com — parallel/test-listen-fd-cluster is flaky · Issue #1931 · nodejs/node
parallel/test-listen-fd-cluster is flaky #1931Labels clusterIssues and PRs related to the cluster subsystem.testIssues and PRs related to Node.js core tests and test infrastructure. Activityadded testIssues and PRs related to Node.js core tests and test infrastructure. on Jun 9, 2015sam-github commented on Jun 10, 2015 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 commented on Jul 8, 2015 @sam-github we just found a similar behaviour in test-listen-fd-server. Would you mind having a look? sam-github commented on Aug 6, 2015 @jbergstroem, test-listen-fd-server.js was a duplicate of test-listen-fd-cluster.js, I pushed a rework of it onto #1944 Trott commented on Aug 24, 2015 Is this still an issue? Or was this fixed by @sam-github's commits on June 10? brendanashworth commented on Aug 29, 2015 I figure we can close this for now, we'll reopen if we see another failure.
MetadataMetadataclusterIssues and PRs related to the cluster subsystem.testIssues and PRs related to Node.js core tests and test infrastructure. DevelopmentNo branches or pull requestsIssue actions
|