mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 04:29:23 +08:00
Display details upon failures to re-balance EC shards racks. (#6299)
This commit is contained in:
@@ -122,7 +122,12 @@ func TestPickRackToBalanceShardsInto(t *testing.T) {
|
||||
rackToShardCount := countShardsByRack(vid, locations)
|
||||
averageShardsPerEcRack := ceilDivide(erasure_coding.TotalShardsCount, len(racks))
|
||||
|
||||
got := pickRackToBalanceShardsInto(racks, rackToShardCount, nil, averageShardsPerEcRack)
|
||||
got, gotErr := pickRackToBalanceShardsInto(racks, rackToShardCount, nil, averageShardsPerEcRack)
|
||||
if gotErr != nil {
|
||||
t.Errorf("volume %q: %s", tc.vid, gotErr.Error())
|
||||
continue
|
||||
}
|
||||
|
||||
if string(got) == "" && len(tc.wantOneOf) == 0 {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user