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

View File

@@ -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
}