Skip to content

Commit 849db3a

Browse files
committed
ci(kb): disable ES disk watermark in functional tests
The KB functional tests intermittently failed in setup-kibana.cjs with 6 minutes of `failed to retrieve password hash for reserved user [elastic]` errors. The underlying cause is in the ES container logs: UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable When the Buildkite host disk is above the default 85% low watermark, ES refuses to allocate the security index's primary shard, so the reserved-user store never becomes readable and every `elastic` auth attempt fails. Intermittent because it depends on the agent's disk state at run time. For a single-node trial test cluster on ephemeral CI storage, the disk allocator buys nothing, so turn it off. Refs #416
1 parent 9ae56ef commit 849db3a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.buildkite/run-kb-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ docker run \
8585
--env "ELASTIC_PASSWORD=${ES_PASSWORD}" \
8686
--env "xpack.security.http.ssl.enabled=false" \
8787
--env "xpack.security.transport.ssl.enabled=false" \
88+
--env "cluster.routing.allocation.disk.threshold_enabled=false" \
8889
--env "ES_JAVA_OPTS=-Xms512m -Xmx512m" \
8990
--detach \
9091
--rm \

0 commit comments

Comments
 (0)