Skip to content

[backport, 17.06] RoleManager will remove deleted nodes from the cluster membership#2607

Merged
anshulpundir merged 3 commits into
moby:bump_v17.06from
cyli:backport-rolemanager-17.06
Jul 3, 2018
Merged

[backport, 17.06] RoleManager will remove deleted nodes from the cluster membership#2607
anshulpundir merged 3 commits into
moby:bump_v17.06from
cyli:backport-rolemanager-17.06

Conversation

@cyli
Copy link
Copy Markdown
Contributor

@cyli cyli commented Apr 17, 2018

Backports #2551 to the 17.06 branch.

@cyli cyli force-pushed the backport-rolemanager-17.06 branch from 48092fb to a0235de Compare April 17, 2018 18:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2018

Codecov Report

Merging #2607 into bump_v17.06 will decrease coverage by 0.59%.
The diff coverage is 73.33%.

@@               Coverage Diff               @@
##           bump_v17.06    #2607      +/-   ##
===============================================
- Coverage        61.84%   61.24%    -0.6%     
===============================================
  Files               42      121      +79     
  Lines             5692    20196   +14504     
===============================================
+ Hits              3520    12369    +8849     
- Misses            1835     6474    +4639     
- Partials           337     1353    +1016

@cyli
Copy link
Copy Markdown
Contributor Author

cyli commented Apr 17, 2018

As a note, I think the test failures are due to the flakiness that was fixed by #2575. Not sure it's worth backporting those tests though, so I'll just rebuild.

@cyli
Copy link
Copy Markdown
Contributor Author

cyli commented May 2, 2018

Closing this as I think we aren't going to be porting anything back to 17.06 anymore.

@cyli cyli closed this May 2, 2018
@cyli cyli reopened this Jul 2, 2018
@cyli cyli force-pushed the backport-rolemanager-17.06 branch from a0235de to 9e8473f Compare July 2, 2018 22:37
@cyli cyli force-pushed the backport-rolemanager-17.06 branch from 9e8473f to 589e16e Compare July 2, 2018 23:20
@moby moby deleted a comment from GordonTheTurtle Jul 2, 2018
@cyli
Copy link
Copy Markdown
Contributor Author

cyli commented Jul 3, 2018

This is hitting every flakey test failure :(

cyli and others added 3 commits July 3, 2018 10:46
both on startup and while a node is demoted while it's running.  Also add
a failing test, where the roleManager should remove deleted nodes from
the cluster membership on startup.

These tests involve injecting a fake clock source into roleManager.

Signed-off-by: cyli <cyli@twistedmatrix.com>
(cherry picked from commit 1d68e61)
Signed-off-by: Ying Li <ying.li@docker.com>
…nger in

the raft store.

Signed-off-by: cyli <ying.li@docker.com>
(cherry picked from commit 5322ff5)
Signed-off-by: Ying Li <ying.li@docker.com>
… node that

is a manager can be removed if it hasn't joined the raft cluster yet.  However,
perhaps the raft conf change happens right after the check.

Signed-off-by: Ying Li <ying.li@docker.com>
(cherry picked from commit 36954b5)
Signed-off-by: Ying Li <ying.li@docker.com>
@cyli cyli force-pushed the backport-rolemanager-17.06 branch from 589e16e to 6443149 Compare July 3, 2018 17:46
@anshulpundir anshulpundir merged commit b7e2ee4 into moby:bump_v17.06 Jul 3, 2018
@cyli cyli deleted the backport-rolemanager-17.06 branch July 3, 2018 20:18
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