Skip to content

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.

Fix ec.rebuild failing on unrepairable volumes instead of skipping (#8632)

Chris Lu5acb4578abef
diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go
index 71e05893e2..aa6fa0f817 100644
--- a/weed/shell/command_ec_rebuild.go
+++ b/weed/shell/command_ec_rebuild.go
@@ -231,12 +231,7 @@ func (erb *ecRebuilder) rebuildEcVolumes(collection string) {
continue
}
if shardCount < erasure_coding.DataShardsCount {
- // Capture variables for closure
- vid := vid
- shardCount := shardCount
- erb.ewg.Add(func() error {
- return fmt.Errorf("ec volume %d is unrepairable with %d shards", vid, shardCount)
- })
+ erb.write("ec volume %d is unrepairable with %d shards (need %d), skipping\n", vid, shardCount, erasure_coding.DataShardsCount)
continue
}