grpc / grpc/grpc-java

Validate load-balancing policy name early in ManagedChannelBuilder.defaultLoadBalancingPolicy()

Open
#12,695 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

Modify `defaultLoadBalancingPolicy(String)` to validate the provided policy name against the LoadBalancerRegistry immediately when the setter is called. If the policy name is not found in the registry, the method should throw an exception. This change ensures that configuration errors, such as typos, are caught at the call site rather than during channel construction.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.