Skip to content

Commit fc41b3a

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 de7a1b9 commit fc41b3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)