Display details upon failures to re-balance EC shards racks. (#6299)

This commit is contained in:
Lisandro Pin
2024-11-28 17:42:41 +01:00
committed by GitHub
parent 559a1fd0f4
commit 9a741a61b1
2 changed files with 18 additions and 12 deletions

View File

@@ -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
}