xds: enable xDS retry by default (#8403)

This commit is contained in:
ZHANG Dapeng 2021-08-12 10:01:32 -07:00 committed by GitHub
parent bdf9a96476
commit c8db48e2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -134,8 +134,8 @@ final class ClientXdsClient extends AbstractXdsClient {
|| Boolean.parseBoolean(System.getenv("GRPC_XDS_EXPERIMENTAL_FAULT_INJECTION"));
@VisibleForTesting
static boolean enableRetry =
!Strings.isNullOrEmpty(System.getenv("GRPC_XDS_EXPERIMENTAL_ENABLE_RETRY"))
&& Boolean.parseBoolean(System.getenv("GRPC_XDS_EXPERIMENTAL_ENABLE_RETRY"));
Strings.isNullOrEmpty(System.getenv("GRPC_XDS_EXPERIMENTAL_ENABLE_RETRY"))
|| Boolean.parseBoolean(System.getenv("GRPC_XDS_EXPERIMENTAL_ENABLE_RETRY"));
private static final String TYPE_URL_HTTP_CONNECTION_MANAGER_V2 =
"type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2"

View File

@ -136,7 +136,7 @@ public class ClientXdsClientDataTest {
@Before
public void setUp() {
originalEnableRetry = ClientXdsClient.enableRetry;
assertThat(originalEnableRetry).isFalse();
assertThat(originalEnableRetry).isTrue();
}
@After