Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented Feb 13, 2025

8.18 backport of #122357

Whenever a search timeout is set to a search request, the timeout may be triggered
by the suggest phase via exitable directory reader. In that case, the exception that
is thrown by the timeout check needs to be handled, instead of returned back to the user.

Instead of handling the timeout in each phase, this commit handles it as part of QueryPhase
for both SuggestPhase and RescorePhase.

For rescore phase, one integration test that is time dependent is also rewritten to remove
the time dependency and moved from QueryRescorerIT to SearchTimeoutIT.

Closes elastic#122186
@javanna javanna added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Search Foundations/Search Catch all for Search Foundations labels Feb 13, 2025
@javanna javanna changed the title Handle search timeout in SuggestPhase (#122357) [8.18] Handle search timeout in SuggestPhase (#122357) Feb 13, 2025
@elasticsearchmachine elasticsearchmachine merged commit 15799a8 into elastic:8.18 Feb 13, 2025
15 checks passed
@javanna javanna deleted the backport/8.18/122518 branch February 13, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Search Foundations/Search Catch all for Search Foundations v8.18.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants