Skip to content

Commit

Permalink
[Tests] Fix ReopenWhileClosingIT with correct min num shards
Browse files Browse the repository at this point in the history
The test intercepts TransportVerifyShardBeforeCloseAction shard
requests, so it needs a minimum of 2 primary shards on 2 different
 nodes to correctly intercepts requests.
  • Loading branch information
tlrx committed Jan 9, 2019
1 parent 7ff846f commit dc371ef
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return singletonList(MockTransportService.TestPlugin.class);
}

@Override
protected int minimumNumberOfShards() {
return 2;
}

public void testReopenDuringClose() throws Exception {
final String indexName = "test";
createIndexWithDocs(indexName);
Expand Down

0 comments on commit dc371ef

Please sign in to comment.