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

Cherry picks for the 1.12.x branch #1573

Merged
merged 12 commits into from
Nov 29, 2016
Merged

Cherry picks for the 1.12.x branch #1573

merged 12 commits into from
Nov 29, 2016

Conversation

aboch
Copy link
Contributor

@aboch aboch commented Nov 24, 2016

No description provided.

@mavenugo
Copy link
Contributor

@aboch can you pls point to all the docker issues that this cherry-pick brings in ?
Since it is cherry-picked for the 1.12.x specific branch, its better to be conservative and pick only those that are critical (such as panic), regressions in previous 1.12.x release, etc...

aboch and others added 12 commits November 28, 2016 09:51
- This fixes a panic in memberlist.Leave() because called
  after memberlist.shutdown = false
  It happens because of two interlocking calls to NetworkDB.clusterLeave()
  It is easily reproducible with two back-to-back calls
  to docker swarm init && docker swarm leave --force
  While the first clusterLeave() is waiting for sendNodeEvent(NodeEventTypeLeave)
  to timeout (5 sec) a second clusterLeave() is called. The second clusterLeave()
  will end up invoking memberlist.Leave() after the previous call already did
  the same, therefore after memberlist.shutdown was set false.
- The fix is to have agentClose() acquire the agent instance and reset the
  agent pointer right away under lock. Then execute the closing/leave functions
  on the agent instance.

Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Santhosh Manohar <[email protected]>
- stop iterating after changing the list reference

Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
@aboch
Copy link
Contributor Author

aboch commented Nov 28, 2016

@mavenugo I reduced the cherry-pick list. These are the referenced panic issues
moby/moby#28112
moby/moby#28465
docker/for-mac#849
moby/moby#28606
moby/moby#28630
#1572
moby/moby#25184
moby/moby#28055

Also #1570 still needs to be review/merged and picked in here, which will solve
moby/moby#28697

@sanimej
Copy link

sanimej commented Nov 28, 2016

#1573 fixes a panic that was seen by a user. But I don't think we have an issue in docker for that.

@mavenugo
Copy link
Contributor

LGTM

@mavenugo mavenugo merged commit 9db59e8 into moby:release/v0.8 Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants