Skip to content

Commit 5f4e681

Browse files
authored
Fix CCS stats test (#115801)
Set index stats to be refreshed immediately - cached 0 size may be the reason why it fails. Fixes #115600
1 parent e543e82 commit 5f4e681

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ tests:
236236
- class: org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
237237
method: test {yaml=reference/esql/esql-across-clusters/line_197}
238238
issue: https://github.com/elastic/elasticsearch/issues/115575
239-
- class: org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT
240-
method: test {yaml=cluster.stats/30_ccs_stats/cross-cluster search stats search}
241-
issue: https://github.com/elastic/elasticsearch/issues/115600
242239
- class: org.elasticsearch.oldrepos.OldRepositoryAccessIT
243240
method: testOldRepoAccess
244241
issue: https://github.com/elastic/elasticsearch/issues/115631

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.stats/30_ccs_stats.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
body:
7171
settings:
7272
number_of_replicas: 0
73+
store.stats_refresh_interval: 0ms
7374

7475
- do:
7576
index:
@@ -79,6 +80,10 @@
7980
body:
8081
foo: bar
8182

83+
- do:
84+
indices.flush:
85+
index: test
86+
8287
- do:
8388
cluster.health:
8489
wait_for_status: green

0 commit comments

Comments
 (0)