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
fix(shell): pass collection in ec.shard.unmount --delete request (#10219)
qzhello2c980fb4680f
diff --git a/weed/shell/command_ec_shard_unmount.go b/weed/shell/command_ec_shard_unmount.goindex 746575ec52..ee2659049a 100644--- a/weed/shell/command_ec_shard_unmount.go+++ b/weed/shell/command_ec_shard_unmount.go@@ -24,6 +24,7 @@ const (type ecShard struct {ShardID uint32+ Collection stringNodeAddress string}@@ -173,6 +174,7 @@ func (c *commandEcShardUnmount) liveShardsForVolume() []*ecShard {for _, sid := range sinfo.Ids() {shards = append(shards, &ecShard{ShardID: uint32(sid),+ Collection: eci.GetCollection(),NodeAddress: nodeAddress,})}@@ -264,8 +266,9 @@ func (c *commandEcShardUnmount) unmountShard(s *ecShard) error {if c.delete {c.write("Deleting shard %v for volume ID %d...\n", s, c.volumeID)if _, err := vsc.VolumeEcShardsDelete(ctx, &volume_server_pb.VolumeEcShardsDeleteRequest{- VolumeId: c.volumeID,- ShardIds: []uint32{s.ShardID},+ VolumeId: c.volumeID,+ Collection: s.Collection,+ ShardIds: []uint32{s.ShardID},}); err != nil {return err}