diff --git a/lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsFileSystemConfig.java b/lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsFileSystemConfig.java index b5c8652ccdd3..fb8797b96f4e 100644 --- a/lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsFileSystemConfig.java +++ b/lib/trino-filesystem-gcs/src/main/java/io/trino/filesystem/gcs/GcsFileSystemConfig.java @@ -43,11 +43,11 @@ public class GcsFileSystemConfig private String jsonKey; private String jsonKeyFilePath; private int maxRetries = 20; - private double backoffScaleFactor = 2.0; - private Duration maxRetryTime = new Duration(20, TimeUnit.SECONDS); + private double backoffScaleFactor = 3.0; + private Duration maxRetryTime = new Duration(25, TimeUnit.SECONDS); private Duration minBackoffDelay = new Duration(10, TimeUnit.MILLISECONDS); // Note: there is no benefit to setting this much higher as the rpc quota is 1x per second: https://cloud.google.com/storage/docs/retry-strategy#java - private Duration maxBackoffDelay = new Duration(1100, TimeUnit.MILLISECONDS); + private Duration maxBackoffDelay = new Duration(2000, TimeUnit.MILLISECONDS); @NotNull public DataSize getReadBlockSize() diff --git a/lib/trino-filesystem-gcs/src/test/java/io/trino/filesystem/gcs/TestGcsFileSystemConfig.java b/lib/trino-filesystem-gcs/src/test/java/io/trino/filesystem/gcs/TestGcsFileSystemConfig.java index d5b640f8f738..447dccdb86f3 100644 --- a/lib/trino-filesystem-gcs/src/test/java/io/trino/filesystem/gcs/TestGcsFileSystemConfig.java +++ b/lib/trino-filesystem-gcs/src/test/java/io/trino/filesystem/gcs/TestGcsFileSystemConfig.java @@ -48,10 +48,10 @@ void testDefaults() .setJsonKey(null) .setJsonKeyFilePath(null) .setMaxRetries(20) - .setBackoffScaleFactor(2.0) - .setMaxRetryTime(new Duration(20, SECONDS)) + .setBackoffScaleFactor(3.0) + .setMaxRetryTime(new Duration(25, SECONDS)) .setMinBackoffDelay(new Duration(10, MILLISECONDS)) - .setMaxBackoffDelay(new Duration(1100, MILLISECONDS))); + .setMaxBackoffDelay(new Duration(2000, MILLISECONDS))); } @Test