Skip to content

Commit

Permalink
Fix DLQ writer writing empty list
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
Krishna Kondaka committed Jun 24, 2023
1 parent c2352ba commit 5f8aa8d
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 5f8aa8d

Please sign in to comment.