Skip to content

Commit

Permalink
Fix DLQ writer writing empty list (opensearch-project#2931)
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <[email protected]>
Co-authored-by: Krishna Kondaka <[email protected]>
  • Loading branch information
kkondaka and Krishna Kondaka authored Jun 26, 2023
1 parent b180634 commit 1dd8bd3
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 1dd8bd3

Please sign in to comment.