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

[Etcd downgrade] Apply downgrade policy to server #11919

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

YoyinZyc
Copy link
Contributor

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.

@YoyinZyc YoyinZyc mentioned this pull request May 19, 2020
13 tasks
@YoyinZyc YoyinZyc force-pushed the downgrade-policy branch from 31e1add to 941adfc Compare May 20, 2020 18:31
@YoyinZyc
Copy link
Contributor Author

@jingyih @gyuho Please take a look. Thanks!

@codecov-commenter
Copy link

Codecov Report

Merging #11919 into master will increase coverage by 0.48%.
The diff coverage is 55.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
etcdserver/server.go 75.54% <0.00%> (ø)
etcdserver/v3_server.go 65.90% <0.00%> (+0.95%) ⬆️
etcdserver/api/membership/downgrade.go 23.33% <23.33%> (ø)
etcdserver/api/membership/cluster.go 80.45% <85.71%> (+2.44%) ⬆️
etcdserver/api/capability.go 93.10% <100.00%> (ø)
etcdserver/api/rafthttp/http.go 77.52% <100.00%> (+0.14%) ⬆️
etcdserver/cluster_util.go 67.24% <100.00%> (+2.36%) ⬆️
proxy/grpcproxy/register.go 72.50% <0.00%> (-10.00%) ⬇️
auth/simple_token.go 69.74% <0.00%> (-7.57%) ⬇️
clientv3/naming/grpc.go 68.42% <0.00%> (-7.02%) ⬇️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cac5386...941adfc. Read the comment docs.

@gyuho gyuho self-requested a review June 2, 2020 08:21
@gyuho gyuho self-assigned this Jun 2, 2020
@YoyinZyc YoyinZyc force-pushed the downgrade-policy branch 2 times, most recently from 13f6b80 to 3cadaf7 Compare June 8, 2020 04:46
@YoyinZyc YoyinZyc requested a review from gyuho June 8, 2020 06:24
@YoyinZyc
Copy link
Contributor Author

@gyuho Friendly ping. Can you have another look?

@gyuho
Copy link
Contributor

gyuho commented Jun 23, 2020

Will take a look today. Thanks!

@@ -15,6 +15,7 @@
package api

import (
"go.etcd.io/etcd/v3/etcdserver/api/membership"
Copy link
Contributor

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"?

Copy link
Contributor

@gyuho gyuho left a 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)

@gyuho gyuho merged commit ae59425 into etcd-io:master Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants