Skip to content

Commit 63a74d9

Browse files
fix: update Publish retry backoff settings (#1686)
* 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>
1 parent d64bf28 commit 63a74d9

File tree

1 file changed

+1
-1
lines changed
  • google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1

1 file changed

+1
-1
lines changed

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public static final class Builder {
686686
private static final Duration DEFAULT_TOTAL_TIMEOUT = Duration.ofSeconds(600);
687687
private static final Duration DEFAULT_INITIAL_RETRY_DELAY = Duration.ofMillis(100);
688688
private static final Duration DEFAULT_MAX_RETRY_DELAY = Duration.ofSeconds(60);
689-
private static final double DEFAULT_MULTIPLIER = 1.3;
689+
private static final double DEFAULT_MULTIPLIER = 4;
690690
static final BatchingSettings DEFAULT_BATCHING_SETTINGS =
691691
BatchingSettings.newBuilder()
692692
.setDelayThreshold(DEFAULT_DELAY_THRESHOLD)

0 commit comments

Comments
 (0)