-
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
balancer: add a warning for balancer names that contain upper case letters #6647
Conversation
It looks like throughout this PR you've confused case sensitive & insensitive. We are currently insensitive but will be changing to become case sensitive, meaning anything registered with capitals are likely a problem (unless service config references it with capitals as well). |
Done. Thanks. |
// TODO: Skip the use of strings.ToLower() to index the map after v1.59 | ||
// is released to switch to case sensitive balancer registry. Also, | ||
// remove this warning and update the docstrings for Register and Get. | ||
logger.Warningf("Balancer registered with name %q. grpc-go will be switching to case sensitive balancer registries soon", b.Name()) |
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.
Shall we add a similar log message to Get
?
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.
Done.
After the next release (v1.59), we can switch over to having a case sensitive balancer registry.
This PR also fixes a test which would be broken once we switch to a case sensitive balancer registry.
#5288
RELEASE NOTES: