Skip to content

Commit

Permalink
fix: update Publish retry backoff settings (#1686)
Browse files Browse the repository at this point in the history
* Update Publisher.java

Change default RetrySettings to use a multiplier of 4 instead of 1.3, to address aggressive retry on RESOURCE_EXHAUSTED errors. (Unfortunately, we can't set different retrySettings per error code.)

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
amfisher-404 and gcf-owl-bot[bot] committed Aug 7, 2023
1 parent d64bf28 commit 63a74d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ public static final class Builder {
private static final Duration DEFAULT_TOTAL_TIMEOUT = Duration.ofSeconds(600);
private static final Duration DEFAULT_INITIAL_RETRY_DELAY = Duration.ofMillis(100);
private static final Duration DEFAULT_MAX_RETRY_DELAY = Duration.ofSeconds(60);
private static final double DEFAULT_MULTIPLIER = 1.3;
private static final double DEFAULT_MULTIPLIER = 4;
static final BatchingSettings DEFAULT_BATCHING_SETTINGS =
BatchingSettings.newBuilder()
.setDelayThreshold(DEFAULT_DELAY_THRESHOLD)
Expand Down

0 comments on commit 63a74d9

Please sign in to comment.