From 15911c85f6181ccb2092e24236c218b5adaf3125 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 20 Jun 2023 08:31:42 -0700 Subject: [PATCH] safely ignore out of band deletions while decommissioning (#17473) --- cmd/erasure-server-pool-decom.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/erasure-server-pool-decom.go b/cmd/erasure-server-pool-decom.go index 7c89eb87c..1e74f4cb8 100644 --- a/cmd/erasure-server-pool-decom.go +++ b/cmd/erasure-server-pool-decom.go @@ -757,6 +757,10 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool }) var failure bool if err != nil { + if isErrObjectNotFound(err) || isErrVersionNotFound(err) { + // object deleted by the application, nothing to do here we move on. + continue + } logger.LogIf(ctx, err) failure = true }