Skip to content

Commit 5655186

Browse files
committed
Retry transient NOT_FOUND on Storage API default stream
1 parent a1f260b commit 5655186

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ long flush(
850850
boolean hasPersistentErrors =
851851
failedContext.getError() instanceof Exceptions.StreamFinalizedException
852852
|| statusCode.equals(Status.Code.INVALID_ARGUMENT)
853-
|| statusCode.equals(Status.Code.NOT_FOUND)
853+
|| (!this.useDefaultStream && statusCode.equals(Status.Code.NOT_FOUND))
854854
|| statusCode.equals(Status.Code.FAILED_PRECONDITION);
855855
if (hasPersistentErrors) {
856856
throw new RuntimeException(

0 commit comments

Comments
 (0)