Skip to content

Commit

Permalink
Fix DLQ writer writing empty list (#2931) (#2998)
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Co-authored-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
(cherry picked from commit 1dd8bd3)

Co-authored-by: kkondaka <41027584+kkondaka@users.noreply.github.com>
  • Loading branch information
opensearch-trigger-bot[bot] and kkondaka authored Jul 10, 2023
1 parent 446ea85 commit a9d35cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ private void handleFailures(final AccumulatingBulkRequest<BulkOperationWrapper,

private BulkOperationRequestResponse handleRetry(final AccumulatingBulkRequest request, final BulkResponse response, int retryCount) throws InterruptedException {
final AccumulatingBulkRequest<BulkOperationWrapper, BulkRequest> bulkRequestForRetry = createBulkRequestForRetry(request, response);
if (bulkRequestForRetry.getOperationsCount() == 0) {
return null;
}

final BulkResponse bulkResponse;
try {
bulkResponse = requestFunction.apply(bulkRequestForRetry);
Expand Down

0 comments on commit a9d35cf

Please sign in to comment.