Skip to content

Conversation

@santigimeno
Copy link
Member

It tries to fix#3886

@JungMinu
Copy link
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.
@santigimeno
Copy link
MemberAuthor

Done

@targos
Copy link
Member

@JungMinu
Copy link
Member

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

@Fishrock123
Copy link
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.

@Fishrock123Fishrock123 added the test Issues and PRs related to the tests. label Nov 21, 2015
@JungMinu
Copy link
Member

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

@mscdexmscdex added the cluster Issues and PRs related to the cluster subsystem. label Nov 21, 2015
@cjihrig
Copy link
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
Copy link
Contributor

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

@JungMinu
Copy link
Member

@cjihrig@Fishrock123 May I land this? Thank you

@cjihrig
Copy link
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
@JungMinu
Copy link
Member

Thanks, landed in f8cf947

@JungMinuJungMinu 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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
@jasnelljasnell 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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clusterIssues and PRs related to the cluster subsystem.testIssues 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

@santigimeno@JungMinu@targos@Fishrock123@cjihrig@mscdex@jasnell@MylesBorins