Skip to content

Commit

Permalink
Fix precommit error
Browse files Browse the repository at this point in the history
Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
  • Loading branch information
Anshu Agarwal committed Oct 7, 2022
1 parent 9025518 commit cc83386
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void testGetWeightedRouting_WeightsAreSet() throws IOException {
assertEquals("3.0", weightedRoutingResponse.getLocalNodeWeight());
}

public void testWeightedRoutingMetadataOnOSProcessRestart() throws IOException {
public void testWeightedRoutingMetadataOnOSProcessRestart() throws Exception {
Settings commonSettings = Settings.builder()
.put("cluster.routing.allocation.awareness.attributes", "zone")
.put("cluster.routing.allocation.awareness.force.zone.values", "a,b,c")
Expand Down Expand Up @@ -280,14 +280,8 @@ public void testWeightedRoutingMetadataOnOSProcessRestart() throws IOException {
ensureGreen();

// Restart a random data node and check that OS process comes healthy
try {
internalCluster().restartRandomDataNode();
} catch (Exception e) {
e.printStackTrace();
}

internalCluster().restartRandomDataNode();
ensureGreen();

assertNotNull(internalCluster().clusterService().state().metadata().weightedRoutingMetadata());
}
}

0 comments on commit cc83386

Please sign in to comment.