Skip to content

Commit 2ffd822

Browse files
committed
Merge pull request #242 from aozarov/master
add 429 to the retriable error codes
2 parents 8d19606 + 46d5efa commit 2ffd822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcloud-java-storage/src/main/java/com/google/gcloud/spi/DefaultStorageRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class DefaultStorageRpc implements StorageRpc {
7777
private final Storage storage;
7878

7979
// see: https://cloud.google.com/storage/docs/concepts-techniques#practices
80-
private static final Set<Integer> RETRYABLE_CODES = ImmutableSet.of(504, 503, 502, 500, 408);
80+
private static final Set<Integer> RETRYABLE_CODES = ImmutableSet.of(504, 503, 502, 500, 429, 408);
8181

8282
public DefaultStorageRpc(StorageOptions options) {
8383
HttpTransport transport = options.httpTransportFactory().create();

0 commit comments

Comments
 (0)