From 63a74d98fdee56a98819d135a676a67fcc24961a Mon Sep 17 00:00:00 2001 From: amfisher-404 Date: Mon, 7 Aug 2023 16:00:24 -0400 Subject: [PATCH] fix: update Publish retry backoff settings (#1686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 6803e5a43..d0437cb58 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -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)