etcdserver: learner return Unavailable for unsupported RPC
Make learner return code.Unavailable when the request is not supported by learner. Client balancer will retry a different endpoint.
This commit is contained in:
@ -1166,6 +1166,10 @@ func (m *member) RecoverPartition(t testing.TB, others ...*member) {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *member) ReadyNotify() <-chan struct{} {
|
||||
return m.s.ReadyNotify()
|
||||
}
|
||||
|
||||
func MustNewHTTPClient(t testing.TB, eps []string, tls *transport.TLSInfo) client.Client {
|
||||
cfgtls := transport.TLSInfo{}
|
||||
if tls != nil {
|
||||
|
Reference in New Issue
Block a user