Skip to content

Commit 4f28101

Browse files
committed
Added retries for userRateLimitExceeded and rateLimitExceeded.
1 parent 9b6929b commit 4f28101

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gcloud-java-dns/src/main/java/com/google/gcloud/dns/DnsException.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ public class DnsException extends BaseServiceException {
3131

3232
// see: https://cloud.google.com/dns/troubleshooting
3333
private static final Set<Error> RETRYABLE_ERRORS = ImmutableSet.of(
34+
new Error(429, null),
3435
new Error(500, null),
3536
new Error(502, null),
36-
new Error(503, null));
37+
new Error(503, null),
38+
new Error(null, "userRateLimitExceeded"),
39+
new Error(null, "rateLimitExceeded"));
3740
private static final long serialVersionUID = 490302380416260252L;
3841

3942
public DnsException(IOException exception) {

0 commit comments

Comments
 (0)