safely ignore out of band deletions while decommissioning (#17473)

This commit is contained in:
Harshavardhana 2023-06-20 08:31:42 -07:00 committed by GitHub
parent 5a1612fe32
commit 15911c85f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -757,6 +757,10 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool
}) })
var failure bool var failure bool
if err != nil { 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) logger.LogIf(ctx, err)
failure = true failure = true
} }