Skip to content

Commit 8f8f9eb

Browse files
committed
fix(storage): retry kUnauthenticated error
When using the grpc client for the google cloud storage, we sometimes have issues connecting to the authentication server. Currently, those errors are not retried. This change ensures that we can retry authentication errors when sending queries to google cloud storage using the grpc client.
1 parent 7595793 commit 8f8f9eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/cloud/storage/retry_policy.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ struct StatusTraits {
3232
return status.code() != StatusCode::kDeadlineExceeded &&
3333
status.code() != StatusCode::kInternal &&
3434
status.code() != StatusCode::kResourceExhausted &&
35-
status.code() != StatusCode::kUnavailable;
35+
status.code() != StatusCode::kUnavailable &&
36+
status.code() != StatusCode::kUnauthenticated;
3637
}
3738
};
3839
} // namespace internal

0 commit comments

Comments
 (0)