Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix benchmark system runner no shard available error #2225

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

mrodm
Copy link
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
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 marc-gr and a team November 13, 2024 14:34
@mrodm mrodm merged commit e7afb49 into elastic:main Nov 14, 2024
3 checks passed
@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