mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
fix: allow an entire set to be dropped (#13060)
proceed to heal the cluster when all the drives in a set have failed, this is extremely rare occurrence but even if it happens we allow the cluster to be functional.
This commit is contained in:
parent
addf15f61f
commit
85dfb4351c
@ -19,7 +19,6 @@ package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"time"
|
||||
@ -201,7 +200,12 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []BucketIn
|
||||
|
||||
disks, _ := er.getOnlineDisksWithHealing()
|
||||
if len(disks) == 0 {
|
||||
return errors.New("healErasureSet: No non-healing disks found")
|
||||
// all disks are healing in this set, this is allowed
|
||||
// so we simply proceed to next bucket, marking the bucket
|
||||
// as done as there are no objects to heal.
|
||||
tracker.bucketDone(bucket.Name)
|
||||
logger.LogIf(ctx, tracker.update(ctx))
|
||||
continue
|
||||
}
|
||||
|
||||
// Limit listing to 3 drives.
|
||||
|
Loading…
Reference in New Issue
Block a user