1 parent 190e542 commit c3af927Copy full SHA for c3af927
apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherClient.cs
@@ -840,8 +840,8 @@ async Task Send()
840
}
841
else
842
{
843
- // No ordering-key, just cancel the failed batch.
844
- postLockAction = () => batch.BatchCompletion.SetCanceled();
+ // No ordering-key, just fail the batch.
+ postLockAction = () => batch.BatchCompletion.SetException(publishTask.Exception.InnerExceptions);
845
846
break;
847
default:
0 commit comments