Skip to content

Commit 4015094

Browse files
committed
Mark Datastore's DEADLINE_EXCEEDED as non-rejected
1 parent 2a1b018 commit 4015094

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public final class DatastoreException extends BaseServiceException {
3434

3535
// see https://cloud.google.com/datastore/docs/concepts/errors#Error_Codes"
3636
private static final Set<Error> RETRYABLE_ERRORS = ImmutableSet.of(
37-
new Error(10, "ABORTED"), new Error(4, "DEADLINE_EXCEEDED"), new Error(14, "UNAVAILABLE"));
37+
new Error(10, "ABORTED", true),
38+
new Error(4, "DEADLINE_EXCEEDED", false),
39+
new Error(14, "UNAVAILABLE", true));
3840
private static final long serialVersionUID = 2663750991205874435L;
3941

4042
public DatastoreException(int code, String message, String reason) {

0 commit comments

Comments
 (0)