mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
[TEST] indices.open REST tests need 0 replicas
With replicas the search requests might go to shards that are not ready, since we have a wait for yellow. We can now switch to wait for green as well.
This commit is contained in:
parent
e8e684c6c4
commit
de9fca9cb2
@ -3,10 +3,13 @@
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_index
|
||||
body:
|
||||
settings:
|
||||
number_of_replicas: 0
|
||||
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
indices.close:
|
||||
@ -23,7 +26,7 @@
|
||||
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
search:
|
||||
|
@ -2,15 +2,24 @@ setup:
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_index1
|
||||
body:
|
||||
settings:
|
||||
number_of_replicas: 0
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_index2
|
||||
body:
|
||||
settings:
|
||||
number_of_replicas: 0
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_index3
|
||||
body:
|
||||
settings:
|
||||
number_of_replicas: 0
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
---
|
||||
"All indices":
|
||||
@ -29,7 +38,7 @@ setup:
|
||||
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
search:
|
||||
@ -52,7 +61,7 @@ setup:
|
||||
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
search:
|
||||
@ -75,7 +84,7 @@ setup:
|
||||
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
search:
|
||||
|
Loading…
x
Reference in New Issue
Block a user