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.
This commit is contained in:
Chris Lu
2026-10-20 05:38:25 -07:00
parent 02e23616b7
commit d8e231be54
@@ -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)
}
}