mirror of https://github.com/grpc/grpc-java.git
Flip default for RLS on XDS being enabled to true. (#10248)
This commit is contained in:
parent
6949b8790a
commit
217103cd5e
|
@ -47,7 +47,7 @@ abstract class XdsResourceType<T extends ResourceUpdate> {
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final String HASH_POLICY_FILTER_STATE_KEY = "io.grpc.channel_id";
|
static final String HASH_POLICY_FILTER_STATE_KEY = "io.grpc.channel_id";
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static boolean enableRouteLookup = getFlag("GRPC_EXPERIMENTAL_XDS_RLS_LB", false);
|
static boolean enableRouteLookup = getFlag("GRPC_EXPERIMENTAL_XDS_RLS_LB", true);
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static boolean enableLeastRequest =
|
static boolean enableLeastRequest =
|
||||||
!Strings.isNullOrEmpty(System.getenv("GRPC_EXPERIMENTAL_ENABLE_LEAST_REQUEST"))
|
!Strings.isNullOrEmpty(System.getenv("GRPC_EXPERIMENTAL_ENABLE_LEAST_REQUEST"))
|
||||||
|
|
|
@ -172,7 +172,6 @@ public class XdsClientImplDataTest {
|
||||||
@Before
|
@Before
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
originalEnableRouteLookup = XdsResourceType.enableRouteLookup;
|
originalEnableRouteLookup = XdsResourceType.enableRouteLookup;
|
||||||
assertThat(originalEnableRouteLookup).isFalse();
|
|
||||||
originalEnableLeastRequest = XdsResourceType.enableLeastRequest;
|
originalEnableLeastRequest = XdsResourceType.enableLeastRequest;
|
||||||
assertThat(originalEnableLeastRequest).isFalse();
|
assertThat(originalEnableLeastRequest).isFalse();
|
||||||
originalEnableWrr = XdsResourceType.enableWrr;
|
originalEnableWrr = XdsResourceType.enableWrr;
|
||||||
|
|
Loading…
Reference in New Issue