From 0683ccf116cd6a8d937bf628267d3520110bce6a Mon Sep 17 00:00:00 2001 From: Jean de Klerk Date: Wed, 5 Dec 2018 11:57:12 -0800 Subject: [PATCH] pubsub: retry aborted Part 1 of 2 commits related to #1241. Change-Id: I52ba65b31d207cf559c085b00d679eb56533cff3 Reviewed-on: https://code-review.googlesource.com/c/36110 Reviewed-by: kokoro Reviewed-by: Michael Darakananda --- pubsub/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubsub/service.go b/pubsub/service.go index 63d4aa4edd90..2cf1d13b5a87 100644 --- a/pubsub/service.go +++ b/pubsub/service.go @@ -68,7 +68,7 @@ func isRetryable(err error) bool { return true } switch s.Code() { - case codes.DeadlineExceeded, codes.Internal, codes.ResourceExhausted: + case codes.DeadlineExceeded, codes.Internal, codes.ResourceExhausted, codes.Aborted: return true case codes.Unavailable: return !strings.Contains(s.Message(), "Server shutdownNow invoked")