Skip to content

Commit fc84ad2

Browse files
Fixing BulkAll indefinitely hanging when failing (#5077) (#5091)
Ensure BulkAll() is aborted properly if the whole bulk request keeps returning a bad statuscode and ContinueOnDroppedDocuments is true. This was introduced in #4014 when trying to address a similar issue with backOffTries being ignored. Co-authored-by: R. Madison Haynie <[email protected]>
1 parent 5f937c1 commit fc84ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/Document/Multiple/BulkAll/BulkAllObservable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private async Task<BulkAllResponse> HandleBulkRequest(IList<T> buffer, long page
202202

203203
void ThrowOnExhaustedRetries()
204204
{
205-
if (_partitionedBulkRequest.ContinueAfterDroppedDocuments || backOffRetries < _backOffRetries) return;
205+
if (backOffRetries < _backOffRetries) return;
206206

207207
throw ThrowOnBadBulk(response,
208208
$"{nameof(BulkAll)} halted after {nameof(PipelineFailure)}.{reason} from _bulk and exhausting retries ({backOffRetries})"

0 commit comments

Comments
 (0)