SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
edge case checking when volume server does not have capacity to balance
chrislu141f662734b5
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.goindex 462143e25a..8619ad99e3 100644--- a/weed/shell/command_volume_balance.go+++ b/weed/shell/command_volume_balance.go@@ -259,6 +259,10 @@ func balanceSelectedVolume(commandEnv *CommandEnv, diskType types.DiskType, voluslices.SortFunc(nodesWithCapacity, func(a, b *Node) bool {return a.localVolumeRatio(capacityFunc) < b.localVolumeRatio(capacityFunc)})+ if len(nodesWithCapacity) == 0 {+ fmt.Printf("no volume server found with capacity for %s", diskType.ReadableString())+ return nil+ }fullNode := nodesWithCapacity[len(nodesWithCapacity)-1]var candidateVolumes []*master_pb.VolumeInformationMessagefor _, v := range fullNode.selectedVolumes {