-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
balancergroup: improve observability around balancer cache behavior #6597
Conversation
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.
Should these be at a higher verbosity? I don't think we want to log these by default for everyone, do we?
Fair point. Moved them under |
@@ -403,7 +408,7 @@ func (bg *BalancerGroup) Remove(id string) { | |||
|
|||
sbToRemove, ok := bg.idToBalancerConfig[id] | |||
if !ok { | |||
bg.logger.Infof("balancer group: trying to remove a non-existing locality from balancer group: %v", id) | |||
bg.logger.Warningf("Child policy for locality %q does not exist in the balancer group", id) |
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.
Should this even be Error
so our tests fail? I.e. does it imply a coding error on our part?
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.
Hmm ... Making Close()
or Remove()
idempotent does seem like a good thing to have. But it could point to a coding error on the user of the balancer group, like why are they having a reference to a closed locality. I tried changing it to error and tests are still passing. So, I think we can have it that way, and if at some point, if we run into a case where this can legitimately happen, we can re-evaluate. Thanks.
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.
Approving but please see the inline question.
RELEASE NOTES: none