Skip to content

Commit 60fb0c7

Browse files
authored
fix: Add UNKNOWN to retry code, the same set was used for request level retries. (#3034)
* Update WriteToDefaultStream.java * add unknown to retry code * remove unwanted change.
1 parent 951f769 commit 60fb0c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,8 @@ private boolean isConnectionErrorRetriable(Code statusCode) {
12541254
|| statusCode == Code.UNAVAILABLE
12551255
|| statusCode == Code.CANCELLED
12561256
|| statusCode == Code.INTERNAL
1257-
|| statusCode == Code.DEADLINE_EXCEEDED;
1257+
|| statusCode == Code.DEADLINE_EXCEEDED
1258+
|| statusCode == Code.UNKNOWN;
12581259
}
12591260

12601261
private boolean useBackoffForError(Code statusCode, String streamName) {

0 commit comments

Comments
 (0)