Skip to content

Commit

Permalink
Change number of shards and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
iofit committed Oct 29, 2022
1 parent 3887b60 commit 5b0dc0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ public void testWeightedOperationRouting() throws Exception {

public void testWeightedOperationRoutingWeightUndefinedForOneZone() throws Exception {
final int numIndices = 2;
final int numShards = 3;
final int numShards = 4;
final int numReplicas = 2;
// setting up indices
final String[] indexNames = new String[numIndices];
Expand Down Expand Up @@ -952,7 +952,7 @@ public void testWeightedOperationRoutingWeightUndefinedForOneZone() throws Excep
selectedNodes = new HashSet<>();
setting = Settings.builder().put("cluster.routing.allocation.awareness.attributes", "zone").build();

// Updating weighted round robin weights in cluster state
// Updating weighted round-robin weights in cluster state
weights = Map.of("a", 0.0, "b", 1.0);

state = setWeightedRoutingWeights(state, weights);
Expand Down

0 comments on commit 5b0dc0a

Please sign in to comment.