From 80bce42b3e946bd67af5d9c5abc460f0f859f004 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Wed, 24 Jun 2026 10:25:32 +0530 Subject: [PATCH] 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 --- api/src/main/java/io/minio/MinioAsyncClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/io/minio/MinioAsyncClient.java b/api/src/main/java/io/minio/MinioAsyncClient.java index 1e865626f..4af18480b 100644 --- a/api/src/main/java/io/minio/MinioAsyncClient.java +++ b/api/src/main/java/io/minio/MinioAsyncClient.java @@ -1117,7 +1117,7 @@ private synchronized void populate() { if (!response.result().errors().isEmpty()) { errorIterator = response.result().errors().iterator(); setError(); - completed = true; + completed = error != null; } } catch (MinioException e) { error = new Result<>(e);