Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

balancer: add a warning for balancer names that contain upper case letters #6647

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

easwars
Copy link
Contributor

@easwars easwars commented Sep 19, 2023

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:

  • balancer: grpc will switch to case sensitive balancer names soon

@easwars easwars added the Type: Behavior Change Behavior changes not categorized as bugs label Sep 19, 2023
@easwars easwars added this to the 1.59 Release milestone Sep 19, 2023
@easwars easwars requested a review from dfawley September 19, 2023 22:23
@dfawley
Copy link
Member

dfawley commented Sep 19, 2023

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).

@dfawley dfawley assigned easwars and unassigned dfawley Sep 22, 2023
@easwars
Copy link
Contributor Author

easwars commented Sep 22, 2023

Done. Thanks.

@easwars easwars assigned dfawley and unassigned easwars Sep 22, 2023
// 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())
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@dfawley dfawley assigned easwars and unassigned dfawley Sep 25, 2023
@easwars easwars assigned dfawley and unassigned easwars Sep 25, 2023
@dfawley dfawley assigned easwars and unassigned dfawley Sep 25, 2023
@easwars easwars merged commit 147bd85 into grpc:master Sep 25, 2023
1 check passed
@easwars easwars deleted the case_insensitive_registries branch September 25, 2023 23:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Type: Behavior Change Behavior changes not categorized as bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants