Skip to content

Conversation

temawi
Copy link
Contributor

@temawi temawi commented May 15, 2023

Configure pick_first load balancing if the xDS PickFirst LB config message is specified in the load balancing config for Cluster

temawi added 3 commits May 15, 2023 16:20
Configure pick_first load balancing if the xDS PickFirst LB config
message is used in the Cluster load balancing config.
@temawi temawi requested a review from YifeiZhuang May 16, 2023 18:38
@YifeiZhuang
Copy link
Member

cc. @danielzhaotongliu

* Builds a service config JSON object for the pick_first load balancer config based on the
* given config values.
*/
private static ImmutableMap<String, ?> buildPickFirstConfig(Boolean shuffleAddressList) {
Copy link
Member

Choose a reason for hiding this comment

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

why wrap it to Boolean again? it was bool from proto.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I was copying the approach used with other fields to have null semantics, but that does not apply with bool proto fields. Changed it now, take a look.

@temawi temawi merged commit 810d8ca into grpc:master May 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants