mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] Make sure get request is always local
This commit is contained in:
parent
52f69c64f7
commit
77dae631e1
@ -161,7 +161,12 @@ public class DiscoveryWithNetworkFailuresTests extends ElasticsearchIntegrationT
|
||||
internalCluster().startNodesAsync(3, nodeSettings).get();
|
||||
// Wait until a 3 nodes are part of the cluster
|
||||
ensureStableCluster(3);
|
||||
createIndex("test");
|
||||
|
||||
// Makes sure that the get request can be executed on each node locally:
|
||||
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
|
||||
.put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1)
|
||||
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 2)
|
||||
));
|
||||
|
||||
// Everything is stable now, it is now time to simulate evil...
|
||||
// but first make sure we have no initializing shards and all is green
|
||||
|
Loading…
x
Reference in New Issue
Block a user