-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Handle partial search result with point in time #81349
Conversation
Today, a search request with PIT would fail immediately if any associated indices are gone, which is inconsistent when allow_partial_search_results is true.
Pinging @elastic/es-search (Team:Search) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR changes two things:
- Make PIT work with allow_partial_results = true (previously it would fail)
- Change http response code when allow_partial_results = false
While the former looks ok for me, I'm worried a bit about the BWC implications of the latter, especially as this is being backported to 7.16.
Should we only do 1) here for the backport and follow-up with 2) in a separate PR?
I pushed 8b1be39 to revert the current behaviour when |
@@ -54,7 +54,7 @@ POST /_search <1> | |||
} | |||
} | |||
-------------------------------------------------- | |||
// TEST[catch:missing] | |||
// TEST[catch:unavailable] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to change this as the allow_partial_results
defaults to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks Yannick! |
Today, a search request with PIT would fail immediately if any associated indices or nodes are gone, which is inconsistent when allow_partial_search_results is true. Relates elastic#81256
Today, a search request with PIT would fail immediately if any associated indices or nodes are gone, which is inconsistent when allow_partial_search_results is true. Relates elastic#81256
* Handle partial search result with point in time (#81349) Today, a search request with PIT would fail immediately if any associated indices or nodes are gone, which is inconsistent when allow_partial_search_results is true. Relates #81256 * fix tests * Remove duplicated point-in-time doc * fix test
Today, a search request with PIT would fail immediately if any associated indices or nodes are gone, which is inconsistent when
allow_partial_search_results
is true.Relates #81256