mirror of
https://github.com/minio/minio.git
synced 2025-03-13 05:00:11 -04:00
When decommissioning is started, the list of buckets to decommission is calculated, however, a bucket can be removed before decommissioning reaches it. This will cause an infinite loop of listing error complaining about the non-existence of the bucket. This commit will ignore errVolumeNotFound to skip the not found bucket.
This commit is contained in:
parent
93e40c3ab4
commit
dbf31af6cb
@ -1025,7 +1025,7 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool
|
||||
go decommissionEntry(entry)
|
||||
},
|
||||
)
|
||||
if err == nil || errors.Is(err, context.Canceled) {
|
||||
if err == nil || errors.Is(err, context.Canceled) || errors.Is(err, errVolumeNotFound) {
|
||||
break
|
||||
}
|
||||
setN := humanize.Ordinal(setIdx + 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user