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

etcdserver: learner return code Unavailable for unsupported request types #27

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

jingyih
Copy link
Owner

@jingyih jingyih commented Apr 26, 2019

Make learner return code.Unavailable if the gRPC request type is not supported by learner. The retry and failover mechanism in client balancer is able to pick a different endpoint.

Returning code.Unavailable is also forward compatible. In future learner promotion is an automatic state change that is not initiated via an API call, and typically results in a brief period of unavailability when the learner member is catching up with system state and is not yet ready.

cc @jpbetz @gyuho @WIZARD-CXY

Make learner return code.Unavailable when the request is not supported
by learner. Client balancer will retry a different endpoint.
@gyuho
Copy link

gyuho commented Apr 26, 2019

lgtm

@jingyih jingyih merged commit 636bf1c into learner Apr 26, 2019
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.

2 participants