Skip to content

Commit 0f88dde

Browse files
authored
Disable SLM history in docs tests (#118979) (#119813)
The SLM history data stream was causing issues in the docs tests because its presence was flaky and could result in the inability to remove its index template, which in turn resulted in failing tests.
1 parent 1724fab commit 0f88dde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
7676
setting 'script.painless.regex.enabled', 'true'
7777
setting 'xpack.security.enabled', 'false'
7878
setting 'path.repo', "${buildDir}/cluster/shared/repo"
79+
80+
// disable the ILM and SLM history for doc tests to avoid potential lingering tasks that'd cause test flakiness
81+
setting 'indices.lifecycle.history_index_enabled', 'false'
82+
setting 'slm.history_index_enabled', 'false'
83+
7984
Closure configFile = {
8085
extraConfigFile it, file("src/test/cluster/config/$it")
8186
}

0 commit comments

Comments
 (0)