Skip to content

Commit dc371ef

Browse files
committed
[Tests] Fix ReopenWhileClosingIT with correct min num shards
The test intercepts TransportVerifyShardBeforeCloseAction shard requests, so it needs a minimum of 2 primary shards on 2 different nodes to correctly intercepts requests.
1 parent 7ff846f commit dc371ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server/src/test/java/org/elasticsearch/indices/state/ReopenWhileClosingIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
5858
return singletonList(MockTransportService.TestPlugin.class);
5959
}
6060

61+
@Override
62+
protected int minimumNumberOfShards() {
63+
return 2;
64+
}
65+
6166
public void testReopenDuringClose() throws Exception {
6267
final String indexName = "test";
6368
createIndexWithDocs(indexName);

0 commit comments

Comments
 (0)