GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix cluster test for disconnect with open connections by sam-github · Pull Request #1953 · nodejs/node

Conversation

@sam-github

@sam-github sam-github commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

fix #1933
replaces #1934

passed all tests except arm7 and raspberry pi 1 and 2, they are still ongoing

@Olegas @trevnorris PTAL

note that I think there are ALSO bugs in cluster message passing... this test attempts to evade them by waiting for the socket to be definitively open... by waiting for data from the worker/server

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sam-github
sam-github force-pushed the pr-1934-redux branch 2 times, most recently from 43a34a9 to 01225df Compare June 11, 2015 21:44
@sam-github

sam-github commented Jun 11, 2015

Copy link
Copy Markdown
Contributor Author

last test: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/814/

re-test after rebase: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/815/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mscdex mscdex added cluster Issues and PRs related to the cluster subsystem. test Issues and PRs related to Node.js core tests and test infrastructure. labels Jun 11, 2015
@jbergstroem

jbergstroem commented Jun 11, 2015

Copy link
Copy Markdown
Member

LGTM. Verified on a machine I could reproduce on prior to patch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shigeki

shigeki commented Jun 12, 2015

Copy link
Copy Markdown
Contributor

Timeout error of test-cluster-worker-wait-server-close.js on my FreeBSD machine was resolved with this patch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shigeki shigeki mentioned this pull request Jun 12, 2015
Upgrade to openssl-1.0.2b #1950
Closed
@rvagg

rvagg commented Jun 12, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github
test: fix cluster-worker-wait-server-close races
b5621cb
Wait for data to arrive from worker before doing a disconnect. Without
this, whether the disconnect arrives at the worker before the master
accepts and forwards the connection descriptor to the worker is a race.
@sam-github
sam-github force-pushed the pr-1934-redux branch from 01225df to b5621cb Compare June 12, 2015 04:48
@sam-github

sam-github commented Jun 12, 2015

Copy link
Copy Markdown
Contributor Author

Landed in a5987d4d5e21be04a6239579634fa8b19446d5ef

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github sam-github closed this Jun 12, 2015
@sam-github sam-github mentioned this pull request Jun 12, 2015
cluster: fix broken/hanging tests #1934
Closed
@sam-github
sam-github deleted the pr-1934-redux branch June 12, 2015 04:58
@sam-github sam-github mentioned this pull request Jun 12, 2015
test: test-cluster-worker-wait-server-close.js is hanging #1933
Closed
@jbergstroem

jbergstroem commented Jun 12, 2015

Copy link
Copy Markdown
Member

@sam-github I can't find this commit in the master branch. Github doesn't either. Confuserating.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Jun 12, 2015

Copy link
Copy Markdown
Member
$ git fetch -q iojs && git branch -a --contains a5987d4d5e21be04a6239579634fa8b19446d5ef
error: no such commit a5987d4d5e21be04a6239579634fa8b19446d5ef
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Jun 12, 2015

Copy link
Copy Markdown
Member

I think I figured out what's going on. You pushed it to your own master branch, but for some reason the generated github link thinks the commit also lives in the nodejs/io.js repo (which it doesn't).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Olegas

Olegas commented Jun 12, 2015

Copy link
Copy Markdown
Contributor

@sam-github
Test is fine. Passing on my environment. Thanks!
But can't see your commit on master also (
Reopened #1933 just to not get things lost.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shigeki shigeki mentioned this pull request Jun 12, 2015
Upgrade to openssl-1.0.2c #1958
Closed
sam-github added a commit that referenced this pull request Jun 12, 2015
@sam-github
test: fix cluster-worker-wait-server-close races
03ce84d
Wait for data to arrive from worker before doing a disconnect. Without
this, whether the disconnect arrives at the worker before the master
accepts and forwards the connection descriptor to the worker is a race.

Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
PR-URL: #1953
Fixes: #1933
Fixes: #1400
@sam-github

sam-github commented Jun 12, 2015

Copy link
Copy Markdown
Contributor Author

Landed in 03ce84d

Sorry for the confusion

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github sam-github mentioned this pull request Jun 13, 2015
Revert "cluster: wait on servers closing before disconnect" #1945
Closed
@rvagg rvagg mentioned this pull request Jun 13, 2015
Release proposal: 2.3.0 #1939
Closed
@jbergstroem

jbergstroem commented Jun 14, 2015

Copy link
Copy Markdown
Member

Probably not related to this specific test, but part of the same problem: Two freebsd bots saw this issue in a recent run: https://jenkins-iojs.nodesource.com/job/iojs+any-pr+multi/842/

I couldn't find any trailing processes on either machine. Could it possibly be some other test opening it and now being closed by this fix?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sam-github sam-github mentioned this pull request Jun 15, 2015
cluster: wait for all servers closing before disconnect nodejs/node-v0.x-archive#25527
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cluster Issues and PRs related to the cluster subsystem. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test: test-cluster-worker-wait-server-close.js is hanging

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@sam-github @jbergstroem @shigeki @rvagg @Olegas @mscdex
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.