Skip to content

Commit dbf31af

Browse files
authored
decom: Ignore not found buckets (minio#509) (minio#21023)
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.
1 parent 93e40c3 commit dbf31af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/erasure-server-pool-decom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ func (z *erasureServerPools) decommissionPool(ctx context.Context, idx int, pool
10251025
go decommissionEntry(entry)
10261026
},
10271027
)
1028-
if err == nil || errors.Is(err, context.Canceled) {
1028+
if err == nil || errors.Is(err, context.Canceled) || errors.Is(err, errVolumeNotFound) {
10291029
break
10301030
}
10311031
setN := humanize.Ordinal(setIdx + 1)

0 commit comments

Comments
 (0)