Skip to content

Commit a3369ef

Browse files
committed
Add cluster alloc explain
1 parent d70faa0 commit a3369ef

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,26 @@ setup:
1818
cluster.put_settings:
1919
body:
2020
persistent:
21-
logger.org.elasticsearch.cluster: TRACE
21+
logger.org.elasticsearch: DEBUG
2222

2323
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
2424
- do:
2525
cluster.health:
2626
index: .synonyms-2
2727
level: shards
28-
timeout: 2m
28+
timeout: 60s
29+
wait_for_status: green
30+
ignore: 408
31+
32+
- do:
33+
cluster.allocation_explain:
34+
body: { "index": ".synonyms-2", "shard": 0, "primary": false }
35+
36+
- do:
37+
cluster.health:
38+
index: .synonyms-2
39+
level: shards
40+
timeout: 20s
2941
wait_for_status: green
3042

3143
---
@@ -34,7 +46,7 @@ teardown:
3446
cluster.put_settings:
3547
body:
3648
persistent:
37-
logger.org.elasticsearch.cluster: INFO
49+
logger.org.elasticsearch: INFO
3850

3951
---
4052
"Get a synonym rule":

0 commit comments

Comments
 (0)