mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
Do not log volume not empty when healing dangling buckets (#18822)
Healing dangling buckets is conservative, and it is a typical use case to fail to remove a dangling bucket because it contains some data because healing danging bucket code is not allowed to remove data: only healing the dangling object is allowed to do so.
This commit is contained in:
parent
dd2542e96c
commit
7ce0d71a96
@ -165,7 +165,7 @@ func healBucketLocal(ctx context.Context, bucket string, opts madmin.HealOpts) (
|
|||||||
return errDiskNotFound
|
return errDiskNotFound
|
||||||
}
|
}
|
||||||
err := globalLocalDrives[index].DeleteVol(ctx, bucket, false)
|
err := globalLocalDrives[index].DeleteVol(ctx, bucket, false)
|
||||||
if errors.Is(err, errVolumeNotEmpty) {
|
if !errors.Is(err, errVolumeNotEmpty) {
|
||||||
logger.LogOnceIf(ctx, fmt.Errorf("While deleting dangling Bucket (%s), Drive %s:%s returned an error (%w)",
|
logger.LogOnceIf(ctx, fmt.Errorf("While deleting dangling Bucket (%s), Drive %s:%s returned an error (%w)",
|
||||||
bucket, globalLocalDrives[index].Hostname(), globalLocalDrives[index], err), "delete-dangling-bucket-"+bucket)
|
bucket, globalLocalDrives[index].Hostname(), globalLocalDrives[index], err), "delete-dangling-bucket-"+bucket)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user