Skip to content

Commit

Permalink
minor fix for failing requests containing large batches of IDs to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Apr 26, 2024
1 parent 3b5c76f commit 645e628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ public void deleteAll(List<String> keys) {
if (keys == null || keys.isEmpty()) {
return;
}
final int size = this.chunkSize;
final int size = (keys.size() > 100 && this.chunkSize <= 0) ? 50 : this.chunkSize;
IntStream.range(0, getNumChunks(keys, size))
.mapToObj(i -> (List<String>) partitionList(keys, i, size))
.forEach(chunk -> {
Expand Down

0 comments on commit 645e628

Please sign in to comment.