Skip to content

Fix benchmark system runner no shard available error#2225

Merged
mrodm merged 5 commits intoelastic:mainfrom
mrodm:benchmark-no-shard-available-error
Nov 14, 2024
Merged

Fix benchmark system runner no shard available error#2225
mrodm merged 5 commits intoelastic:mainfrom
mrodm:benchmark-no-shard-available-error

Conversation

@mrodm
Copy link
Copy Markdown
Contributor

@mrodm mrodm commented Nov 13, 2024

Skip errors related to no_shard_available_action_exception when querying to ES to count for documents in benchmarks.

To avoid errors like the ones in this build:
https://buildkite.com/elastic/elastic-package/builds/4296#019324f6-874c-448e-8b72-c6b84ae661e8/204-787

This exception/skip is also added when doing searches in Elasticsearch:

if resp.StatusCode == http.StatusServiceUnavailable && strings.Contains(resp.String(), "no_shard_available_action_exception") {

Added temporarily a log message to show that the no_shards_available_action_exception is caught here:
https://buildkite.com/elastic/elastic-package/builds/4302#01932566-5526-4a51-b122-4ec779f782ad/194-755

@mrodm mrodm self-assigned this Nov 13, 2024
@mrodm mrodm changed the title Benchmark no shard available error Fix benchmark system runner no shard available error Nov 13, 2024
@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm marked this pull request as ready for review November 13, 2024 14:34
@mrodm mrodm requested review from a team and marc-gr November 13, 2024 14:34
@mrodm mrodm merged commit e7afb49 into elastic:main Nov 14, 2024
@mrodm mrodm deleted the benchmark-no-shard-available-error branch November 14, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants