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

test: child-process-fork-regr-gh-2847 is flaky still #5349

Closed
mscdex opened this issue Feb 21, 2016 · 5 comments
Closed

test: child-process-fork-regr-gh-2847 is flaky still #5349

mscdex opened this issue Feb 21, 2016 · 5 comments
Labels
child_process Issues and PRs related to the child_process subsystem. test Issues and PRs related to the tests.

Comments

@mscdex
Copy link
Contributor

mscdex commented Feb 21, 2016

Example CI run on ppcbe-fedora20.

/cc @santigimeno @Trott

@mscdex mscdex added child_process Issues and PRs related to the child_process subsystem. test Issues and PRs related to the tests. labels Feb 21, 2016
@santigimeno
Copy link
Member

@mscdex can you copy the output please? Thanks

@mscdex
Copy link
Contributor Author

mscdex commented Feb 21, 2016

Here it is:

not ok 51 test-child-process-fork-regr-gh-2847.js
# events.js:155
#       throw er; // Unhandled 'error' event
#       ^
# 
# Error: connect ECONNREFUSED 127.0.0.1:12346
#     at Object.exports._errnoException (util.js:859:11)
#     at exports._exceptionWithHostPort (util.js:882:20)
#     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1059:14)

@santigimeno
Copy link
Member

It looks that these lines that I removed in the last refactoring are still relevant:

// Errors can happen if the connections
// are still happening while the server has been closed.
// This can happen depending on how the messages are
// bundled into packets. If they all make it into the first
// one then no errors will occur, otherwise the server
// may have been closed by the time the later ones make
// it to the server side.
// We ignore any errors that occur after some connections
// get through
s.on('error', function(err) {
if (connectcount < 3)
console.log(err);
});
. Is the error reproducible in the CI?

@Trott
Copy link
Member

Trott commented Feb 21, 2016

@santigimeno Reproducible in CI. https://ci.nodejs.org/job/node-stress-single-test/518/nodes=ppcbe-fedora20/console. Results so far: 115 failures in 2444 runs. Failures look like:

not ok 1 test-child-process-fork-regr-gh-2847.js
# events.js:155
#       throw er; // Unhandled 'error' event
#       ^
# 
# Error: connect ECONNREFUSED 127.0.0.1:12346
#     at Object.exports._errnoException (util.js:859:11)
#     at exports._exceptionWithHostPort (util.js:882:20)
#     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1059:14)

@santigimeno
Copy link
Member

I have submitted a tentative fix here: #5422. Could somebody check in the CI if it fixes the issue? Thanks!

@mscdex mscdex closed this as completed Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

No branches or pull requests

3 participants