Skip to content

Commit

Permalink
fix: additional error codes added to service configuration for retry (#…
Browse files Browse the repository at this point in the history
…39)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 471585446

Source-Link: googleapis/googleapis@e1b54cd

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5cf9f3d16d4414508889245a7ac5ae36f4d886ee
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWNmOWYzZDE2ZDQ0MTQ1MDg4ODkyNDVhN2FjNWFlMzZmNGQ4ODZlZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 2, 2022
1 parent c83baf6 commit 55a9b41
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,12 @@ public static class Builder extends StubSettings.Builder<RegistryStubSettings, B
ImmutableMap.builder();
definitions.put(
"retry_policy_0_codes",
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.ABORTED,
StatusCode.Code.CANCELLED,
StatusCode.Code.DEADLINE_EXCEEDED,
StatusCode.Code.UNAVAILABLE)));
definitions.put(
"no_retry_1_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
Expand All @@ -1162,7 +1167,7 @@ public static class Builder extends StubSettings.Builder<RegistryStubSettings, B
RetrySettings settings = null;
settings =
RetrySettings.newBuilder()
.setInitialRetryDelay(Duration.ofMillis(1000L))
.setInitialRetryDelay(Duration.ofMillis(200L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(60000L))
Expand Down

0 comments on commit 55a9b41

Please sign in to comment.