-
Notifications
You must be signed in to change notification settings - Fork 879
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
Conversation
@aboch can you pls point to all the docker issues that this cherry-pick brings in ? |
- 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: 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: Santhosh Manohar <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Alessandro Boch <[email protected]>
@mavenugo I reduced the cherry-pick list. These are the referenced panic issues Also #1570 still needs to be review/merged and picked in here, which will solve |
#1573 fixes a panic that was seen by a user. But I don't think we have an issue in docker for that. |
LGTM |
No description provided.