Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Aug 2, 2024
1 parent e62c67e commit 57313f2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ void recomputeShardHashBoundariesWithSameValue() {
void recomputeAssignmentsWithSameBoundariesAndDiffLeader() {
final var existing = Map.of(1L, new Shard(1L, "leader 1", new HashRange(0, 4294967295L)));
final var updates = Set.of(new Shard(1L, "leader 2", new HashRange(0, 4294967295L)));
final var updatedMap =
ShardManager.recomputeShardHashBoundaries(existing, updates);
final var updatedMap = ShardManager.recomputeShardHashBoundaries(existing, updates);
final var changes = ShardManager.computeShardLeaderChanges(existing, updatedMap);
assertThat(changes.reassigned()).isEqualTo(updates);
}
Expand Down

0 comments on commit 57313f2

Please sign in to comment.