Skip to content

Commit 71acb0e

Browse files
committed
Check with wait_for_no_initializing_shards
1 parent 7f7a4af commit 71acb0e

File tree

10 files changed

+23
-131
lines changed

10 files changed

+23
-131
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/10_synonyms_put.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ setup:
5858
cluster.health:
5959
index: .synonyms-2
6060
level: shards
61-
wait_for_status: green
62-
timeout: 30s
61+
imeout: 60s
62+
wait_for_status: yellow
63+
wait_for_no_initializing_shards: true t
6364

6465
- do:
6566
synonyms.get_synonym:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/110_synonyms_invalid.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,8 @@ teardown:
3030
index: .synonyms-2
3131
level: shards
3232
timeout: 60s
33-
wait_for_status: green
34-
ignore: 408
35-
36-
- do:
37-
cluster.allocation_explain:
38-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
39-
ignore: 400
40-
41-
- do:
42-
cluster.health:
43-
index: .synonyms-2
44-
level: shards
45-
timeout: 20s
46-
wait_for_status: green
33+
wait_for_status: yellow
34+
wait_for_no_initializing_shards: true
4735

4836
- do:
4937
indices.create:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/20_synonyms_get.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,8 @@ setup:
2727
index: .synonyms-2
2828
level: shards
2929
timeout: 60s
30-
wait_for_status: green
31-
ignore: 408
32-
33-
- do:
34-
cluster.allocation_explain:
35-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
36-
ignore: 400
37-
38-
- do:
39-
cluster.health:
40-
index: .synonyms-2
41-
level: shards
42-
timeout: 20s
43-
wait_for_status: green
30+
wait_for_status: yellow
31+
wait_for_no_initializing_shards: true
4432

4533
---
4634
"Get synonyms set":

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/30_synonyms_delete.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,8 @@ setup:
2525
index: .synonyms-2
2626
level: shards
2727
timeout: 60s
28-
wait_for_status: green
29-
ignore: 408
30-
31-
- do:
32-
cluster.allocation_explain:
33-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
34-
ignore: 400
35-
36-
- do:
37-
cluster.health:
38-
index: .synonyms-2
39-
level: shards
40-
timeout: 20s
41-
wait_for_status: green
28+
wait_for_status: yellow
29+
wait_for_no_initializing_shards: true
4230
---
4331
teardown:
4432
- do:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/40_synonyms_sets_get.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,8 @@ setup:
2323
index: .synonyms-2
2424
level: shards
2525
timeout: 60s
26-
wait_for_status: green
27-
ignore: 408
28-
29-
- do:
30-
cluster.allocation_explain:
31-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
32-
ignore: 400
33-
34-
- do:
35-
cluster.health:
36-
index: .synonyms-2
37-
level: shards
38-
timeout: 20s
39-
wait_for_status: green
26+
wait_for_status: yellow
27+
wait_for_no_initializing_shards: true
4028

4129
- do:
4230
synonyms.put_synonym:
@@ -65,8 +53,8 @@ setup:
6553
index: .synonyms-2
6654
level: shards
6755
timeout: 30s
68-
wait_for_status: green
69-
56+
wait_for_status: yellow
57+
wait_for_no_initializing_shards: true
7058

7159
---
7260
teardown:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/50_synonym_rule_put.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,8 @@ setup:
2727
index: .synonyms-2
2828
level: shards
2929
timeout: 60s
30-
wait_for_status: green
31-
ignore: 408
32-
33-
- do:
34-
cluster.allocation_explain:
35-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
36-
ignore: 400
37-
38-
- do:
39-
cluster.health:
40-
index: .synonyms-2
41-
level: shards
42-
timeout: 20s
43-
wait_for_status: green
30+
wait_for_status: yellow
31+
wait_for_no_initializing_shards: true
4432
---
4533
teardown:
4634
- do:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/60_synonym_rule_get.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,8 @@ setup:
2727
index: .synonyms-2
2828
level: shards
2929
timeout: 60s
30-
wait_for_status: green
31-
ignore: 408
32-
33-
- do:
34-
cluster.allocation_explain:
35-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
36-
ignore: 400
37-
38-
- do:
39-
cluster.health:
40-
index: .synonyms-2
41-
level: shards
42-
timeout: 20s
43-
wait_for_status: green
30+
wait_for_status: yellow
31+
wait_for_no_initializing_shards: true
4432

4533
---
4634
teardown:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/70_synonym_rule_delete.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,8 @@ setup:
2525
index: .synonyms-2
2626
level: shards
2727
timeout: 60s
28-
wait_for_status: green
29-
ignore: 408
30-
31-
- do:
32-
cluster.allocation_explain:
33-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
34-
ignore: 400
35-
36-
- do:
37-
cluster.health:
38-
index: .synonyms-2
39-
level: shards
40-
timeout: 20s
41-
wait_for_status: green
42-
28+
wait_for_status: yellow
29+
wait_for_no_initializing_shards: true
4330

4431
---
4532
"Delete synonym rule":

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/80_synonyms_from_index.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,8 @@ setup:
2424
index: .synonyms-2
2525
level: shards
2626
timeout: 60s
27-
wait_for_status: green
28-
ignore: 408
29-
30-
- do:
31-
cluster.allocation_explain:
32-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
33-
ignore: 400
34-
35-
- do:
36-
cluster.health:
37-
index: .synonyms-2
38-
level: shards
39-
timeout: 20s
40-
wait_for_status: green
27+
wait_for_status: yellow
28+
wait_for_no_initializing_shards: true
4129

4230
# Create an index with synonym_filter that uses that synonyms set
4331
- do:

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,8 @@
3636
index: .synonyms-2
3737
level: shards
3838
timeout: 60s
39-
wait_for_status: green
40-
ignore: 408
41-
42-
- do:
43-
cluster.allocation_explain:
44-
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
45-
ignore: 400
46-
47-
- do:
48-
cluster.health:
49-
index: .synonyms-2
50-
level: shards
51-
timeout: 20s
52-
wait_for_status: green
39+
wait_for_status: yellow
40+
wait_for_no_initializing_shards: true
5341

5442
# Create my_index1 with synonym_filter that uses synonyms_set1
5543
- do:

0 commit comments

Comments
 (0)