Skip to content

Commit

Permalink
Added retries for userRateLimitExceeded and rateLimitExceeded.
Browse files Browse the repository at this point in the history
  • Loading branch information
mderka committed Mar 2, 2016
1 parent 9b6929b commit 4f28101
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ public class DnsException extends BaseServiceException {

// see: https://cloud.google.com/dns/troubleshooting
private static final Set<Error> RETRYABLE_ERRORS = ImmutableSet.of(
new Error(429, null),
new Error(500, null),
new Error(502, null),
new Error(503, null));
new Error(503, null),
new Error(null, "userRateLimitExceeded"),
new Error(null, "rateLimitExceeded"));
private static final long serialVersionUID = 490302380416260252L;

public DnsException(IOException exception) {
Expand Down

0 comments on commit 4f28101

Please sign in to comment.