-
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
clientv3: add pinned() method to 'balancer' #8659
Conversation
Partially address #8660. |
clientv3/balancer.go
Outdated
@@ -42,6 +42,7 @@ type balancer interface { | |||
|
|||
endpoint(host string) string | |||
endpoints() []string | |||
pinned() string |
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.
doc string?
clientv3/retry.go
Outdated
err := f(rpcCtx) | ||
if err == nil { | ||
return nil | ||
} | ||
if logger.V(4) { | ||
logger.Infof("clientv3/retry: retry for error %v", err) | ||
logger.Infof("clientv3/retry: retry for error %v (%s)", err, pinned) |
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.
retry on pined endpoint (%s) due to error %v
clientv3/retry.go
Outdated
err := f(rpcCtx) | ||
if err == nil { | ||
return nil | ||
} | ||
if logger.V(4) { | ||
logger.Infof("clientv3/auth-retry: retry for error %v", err) | ||
logger.Infof("clientv3/auth-retry: retry for error %v (%s)", err, pinned) |
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.
retry on pined endpoint (%s) due to error %v
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.
@xiang90 That endpoint is errored, so it's unpinned by this line. So it's possible that we retry on different endpoint?
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.
or let's say ` error %s on pined endpoint (%s))
basically only (%s) is not descriptive.
this is just for debugging, right? |
@xiang90 Yes, this is for balancer debugging. But in the following PR, I will add gray-listing the timed out endpoint. |
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@xiang90 PTAL. Fixed. Thanks. |
lgtm |
No description provided.