-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[Etcd downgrade] Apply downgrade policy to server #11919
Conversation
31e1add
to
941adfc
Compare
Codecov Report
@@ Coverage Diff @@
## master #11919 +/- ##
==========================================
+ Coverage 65.40% 65.89% +0.48%
==========================================
Files 403 404 +1
Lines 37250 37290 +40
==========================================
+ Hits 24365 24572 +207
+ Misses 11356 11203 -153
+ Partials 1529 1515 -14
Continue to review full report at Codecov.
|
13f6b80
to
3cadaf7
Compare
@gyuho Friendly ping. Can you have another look? |
Will take a look today. Thanks! |
etcdserver/api/capability.go
Outdated
@@ -15,6 +15,7 @@ | |||
package api | |||
|
|||
import ( | |||
"go.etcd.io/etcd/v3/etcdserver/api/membership" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we sort import lines? Place it below "go.etcd.io/etcd/v3/version"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thx! (just minor nit on import lines)
3cadaf7
to
2541b0b
Compare
4th step of #11716.
The PR adjusted downgrade version latch to server. Previously, cluster will not allow lower version member to join in. With downgrade, the cluster can open such latch if downgrade is enabled.
Based on the discussion here, the cluster only allows member with downgrade target version to join in during downgrading.