From d8e231be54e5318ac0c3df6baf2fc4f4ff0cabda Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 20 Oct 2026 05:36:55 -0700 Subject: [PATCH] shell: group ec shards by collection in the duplicate id audit (#11763) EC shards of one volume legitimately span disk types when DiskTypePrefer spills, so grouping by disk type reports healthy volumes as duplicates. --- weed/shell/command_volume_check_duplicate_ids.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_volume_check_duplicate_ids.go b/weed/shell/command_volume_check_duplicate_ids.go index 7a03df3628..d60474ff9e 100644 --- a/weed/shell/command_volume_check_duplicate_ids.go +++ b/weed/shell/command_volume_check_duplicate_ids.go @@ -74,8 +74,8 @@ func (c *commandVolumeCheckDuplicateIds) Do(args []string, commandEnv *CommandEn addCollection(collections, vi.Id, vi.Collection) } for _, si := range di.EcShardInfos { - add(ecSeen, si.Id, fmt.Sprintf("collection=%q ec_shards disk=%s", si.Collection, si.DiskType), - fmt.Sprintf("%s %s", dn.Id, diskKey)) + add(ecSeen, si.Id, fmt.Sprintf("collection=%q ec_shards", si.Collection), + fmt.Sprintf("%s %s disk=%s", dn.Id, diskKey, si.DiskType)) addCollection(ecCollections, si.Id, si.Collection) } }