FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix test-cluster-worker-isdead by santigimeno · Pull Request #3954 · nodejs/node · GitHub

/ node Public

Fix test-cluster-worker-isdead - #3954

Closed
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_worker_isdead
Closed

Fix test-cluster-worker-isdead#3954
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_worker_isdead

Conversation

Copy link
Copy Markdown
Member

It tries to fix #3886

Copy link
Copy Markdown
Member

would you please squash the commits?

Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

Copy link
Copy Markdown
Member Author

Done

targos commented Nov 21, 2015

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

CI is not green with node-test-binary-windows, but it's unrelated.

Copy link
Copy Markdown
Contributor

Better flakiness stress-test: https://ci.nodejs.org/job/node-stress-single-test/25/

Trying on freebsd102-64 since that's where I originally picked up the failure.

Fishrock123 added the test Issues and PRs related to the tests. label Nov 21, 2015

Copy link
Copy Markdown
Member

@Fishrock123 CI is happy with new stress-test, LGTM

mscdex added the cluster Issues and PRs related to the cluster subsystem. label Nov 21, 2015

cjihrig commented Nov 23, 2015

Copy link
Copy Markdown
Contributor

The change LGTM, but I wonder why !worker.isConnected() is flaky and worker.isDead() is not. I'd think that isConnected() would always be false if the worker is dead.

cjihrig commented Nov 23, 2015

Copy link
Copy Markdown
Contributor

Actually the flakiness is probably due the inability to determine the order between the disconnect and exit events. So, LGTM

JungMinu commented Dec 5, 2015

Copy link
Copy Markdown
Member

@cjihrig @Fishrock123 May I land this? Thank you

cjihrig commented Dec 5, 2015

Copy link
Copy Markdown
Contributor

@JungMinu yes, this should be good to go.

JungMinu pushed a commit that referenced this pull request Dec 5, 2015
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: #3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>

JungMinu commented Dec 5, 2015

Copy link
Copy Markdown
Member

Thanks, landed in f8cf947

JungMinu closed this Dec 5, 2015
rvagg pushed a commit that referenced this pull request Dec 8, 2015
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: #3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 15, 2015
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: #3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
jasnell mentioned this pull request Dec 17, 2015
jasnell pushed a commit that referenced this pull request Dec 17, 2015
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: #3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
jasnell pushed a commit that referenced this pull request Dec 23, 2015
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: #3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
Check if the worker 'isDead' instead of 'isConnected' as the
'disconnect' event is not guaranteed to be received before the
'exit' event.
Remove the 'net' dependency as it is not used.

PR-URL: nodejs#3954
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 this pull request may close these issues.

Investigate test-cluster-worker-isdead.js failure

8 participants


Back | FazBrowse Home | New Git URL