Skip to content

Commit c3af927

Browse files
authored
Fix error in handling non-ordered batch errors (#3133)
1 parent 190e542 commit c3af927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherClient.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ async Task Send()
840840
}
841841
else
842842
{
843-
// No ordering-key, just cancel the failed batch.
844-
postLockAction = () => batch.BatchCompletion.SetCanceled();
843+
// No ordering-key, just fail the batch.
844+
postLockAction = () => batch.BatchCompletion.SetException(publishTask.Exception.InnerExceptions);
845845
}
846846
break;
847847
default:

0 commit comments

Comments
 (0)
X