[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:
javanna 2014-05-22 10:55:57 +02:00 committed by Luca Cavanna
parent e8e684c6c4
commit de9fca9cb2
2 changed files with 18 additions and 6 deletions

View File

@ -3,10 +3,13 @@
- do: - do:
indices.create: indices.create:
index: test_index index: test_index
body:
settings:
number_of_replicas: 0
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
- do: - do:
indices.close: indices.close:
@ -23,7 +26,7 @@
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
- do: - do:
search: search:

View File

@ -2,15 +2,24 @@ setup:
- do: - do:
indices.create: indices.create:
index: test_index1 index: test_index1
body:
settings:
number_of_replicas: 0
- do: - do:
indices.create: indices.create:
index: test_index2 index: test_index2
body:
settings:
number_of_replicas: 0
- do: - do:
indices.create: indices.create:
index: test_index3 index: test_index3
body:
settings:
number_of_replicas: 0
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
--- ---
"All indices": "All indices":
@ -29,7 +38,7 @@ setup:
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
- do: - do:
search: search:
@ -52,7 +61,7 @@ setup:
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
- do: - do:
search: search:
@ -75,7 +84,7 @@ setup:
- do: - do:
cluster.health: cluster.health:
wait_for_status: yellow wait_for_status: green
- do: - do:
search: search: