Skip to content

Fix flaky AsyncSearchErrorTraceIT shard lock failure#154952

Merged
drempapis merged 2 commits into
elastic:mainfrom
drempapis:AsyncSearchErrorTraceIT_fix
Jul 25, 2026
Merged

Fix flaky AsyncSearchErrorTraceIT shard lock failure#154952
drempapis merged 2 commits into
elastic:mainfrom
drempapis:AsyncSearchErrorTraceIT_fix

Conversation

@drempapis

Copy link
Copy Markdown
Contributor

Provided another fix last year #137716 about the same class. The old cleanup called ensureGreen once and ignored
errors, but that passes immediately when the index doesn't exist yet, so it didn't really wait. The update here, before deleting the result, waits for the .async-search index to exist and turn green, so the shard is fully started before teardown.

Closes #153545

@drempapis
drempapis requested a review from benchaplin July 24, 2026 11:31
@drempapis drempapis added >test Issues or PRs that are addressing/adding tests Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations v9.4.0 v9.5.0 v9.6.0 labels Jul 24, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@drempapis
drempapis merged commit 1bf9791 into elastic:main Jul 25, 2026
37 checks passed
@drempapis

Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.5
9.4

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Jul 25, 2026
elasticsearchmachine pushed a commit that referenced this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.4.0 v9.5.0 v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] AsyncSearchErrorTraceIT testAsyncSearchFailingQueryErrorTraceFalse failing

3 participants