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 TestMisplacedChecking() and add test-case
zehwehd818ca963178
diff --git a/weed/shell/command_volume_fix_replication_test.go b/weed/shell/command_volume_fix_replication_test.goindex 89ab9f0c17..97f270306c 100644--- a/weed/shell/command_volume_fix_replication_test.go+++ b/weed/shell/command_volume_fix_replication_test.go@@ -332,7 +332,10 @@ func TestMisplacedChecking(t *testing.T) {location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn1"}},},{- location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn2"}},+ location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn2"}},+ },+ {+ location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn3"}},},},expected: false,@@ -345,10 +348,13 @@ func TestMisplacedChecking(t *testing.T) {location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn1"}},},{- location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn2"}},+ location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn2"}},+ },+ {+ location: &location{"dc2", "r2", &master_pb.DataNodeInfo{Id: "dn3"}},},},- expected: false,+ expected: true,},{name: "test 100",