Skip to content

Commit adcdc4f

Browse files
committed
retry batching commands only on retryable errors
1 parent b048983 commit adcdc4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/operations/execute_operation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ async function executeOperationWithRetries<
390390

391391
// batch operations are only retryable if the batch is retryable
392392
if (operation.hasAspect(Aspect.COMMAND_BATCHING)) {
393-
return operation.canRetryWrite;
393+
return operation.canRetryWrite && isRetryableWriteError(error);
394394
}
395395

396396
return (

0 commit comments

Comments
 (0)