Skip to content

Commit 80bce42

Browse files
committed
Do not set completed if NoSuchVersion in removeObjects
Previously if batch object removal gets `NoSuchVersion` error only, the iterator stops processing next batches. This is fixed by continue processing next batches for `NoSuchVersion` but stops for other errors. Signed-off-by: Bala.FA <bala@minio.io>
1 parent 942e2e5 commit 80bce42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/io/minio/MinioAsyncClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ private synchronized void populate() {
11171117
if (!response.result().errors().isEmpty()) {
11181118
errorIterator = response.result().errors().iterator();
11191119
setError();
1120-
completed = true;
1120+
completed = error != null;
11211121
}
11221122
} catch (MinioException e) {
11231123
error = new Result<>(e);

0 commit comments

Comments
 (0)