Skip to content

Commit

Permalink
test load balancing on single shard relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Oct 9, 2024
1 parent 42bf422 commit fa91ca6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ func Test_loadBalancingStrategy_relocation(t *testing.T) {
expected: FingerprintLoadBalancing,
target: 2, // 2/4
},
{
usage: []uint64{2*unitSize - 1, 0},
expected: FingerprintLoadBalancing,
target: 1, // 1/2
},
} {
stats := &adaptive_placementpb.DatasetStats{
Shards: make([]uint32, len(test.usage)),
Expand Down

0 comments on commit fa91ca6

Please sign in to comment.