Skip to content

Commit 7311b9e

Browse files
committed
fix waiting on gcp load balancer
1 parent 5a461b2 commit 7311b9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/grpc/retry/retry.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ func ServiceIsUnavailable(err error) bool {
4141
return true
4242
}
4343

44+
// retry if GCP proxy LB isn't fully available yet
45+
if strings.HasPrefix(statusErr.Message(), `connection error: desc = "transport: authentication handshake failed: read tcp`) {
46+
return true
47+
}
48+
4449
// ideally we would check the error type directly, but grpc only provides a string
4550
return !strings.HasPrefix(statusErr.Message(), `connection error: desc = "transport: authentication handshake failed`)
4651
}

0 commit comments

Comments
 (0)