mirror of https://github.com/grpc/grpc-java.git
xds: remove _experimental in wrr policy name (#10162)
This commit is contained in:
parent
74b515ecf7
commit
6f804331f7
|
@ -38,7 +38,7 @@ public final class WeightedRoundRobinLoadBalancerProvider extends LoadBalancerPr
|
|||
@VisibleForTesting
|
||||
static final long MIN_WEIGHT_UPDATE_PERIOD_NANOS = 100_000_000L; // 100ms
|
||||
|
||||
static final String SCHEME = "weighted_round_robin_experimental";
|
||||
static final String SCHEME = "weighted_round_robin";
|
||||
|
||||
@Override
|
||||
public LoadBalancer newLoadBalancer(Helper helper) {
|
||||
|
|
|
@ -118,7 +118,7 @@ public class LoadBalancerConfigFactoryTest {
|
|||
|
||||
private static final LbConfig VALID_WRR_CONFIG = new LbConfig("wrr_locality_experimental",
|
||||
ImmutableMap.of("childPolicy", ImmutableList.of(
|
||||
ImmutableMap.of("weighted_round_robin_experimental",
|
||||
ImmutableMap.of("weighted_round_robin",
|
||||
ImmutableMap.of("blackoutPeriod","287s", "enableOobLoadReport", true )))));
|
||||
private static final LbConfig VALID_RING_HASH_CONFIG = new LbConfig("ring_hash_experimental",
|
||||
ImmutableMap.of("minRingSize", (double) RING_HASH_MIN_RING_SIZE, "maxRingSize",
|
||||
|
|
|
@ -2037,7 +2037,7 @@ public class XdsClientImplDataTest {
|
|||
assertThat(lbConfig.getPolicyName()).isEqualTo("wrr_locality_experimental");
|
||||
List<LbConfig> childConfigs = ServiceConfigUtil.unwrapLoadBalancingConfigList(
|
||||
JsonUtil.getListOfObjects(lbConfig.getRawConfigValue(), "childPolicy"));
|
||||
assertThat(childConfigs.get(0).getPolicyName()).isEqualTo("weighted_round_robin_experimental");
|
||||
assertThat(childConfigs.get(0).getPolicyName()).isEqualTo("weighted_round_robin");
|
||||
WeightedRoundRobinLoadBalancerConfig result = (WeightedRoundRobinLoadBalancerConfig)
|
||||
new WeightedRoundRobinLoadBalancerProvider().parseLoadBalancingPolicyConfig(
|
||||
childConfigs.get(0).getRawConfigValue()).getConfig();
|
||||
|
|
Loading…
Reference in New Issue