-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BUG] Concurrent index deletion during ongoing search request throws 5xx error #12371
Comments
Related to #8418 |
@jainankitk -- This only applies if the search request is happening as part of an I was under the impression that the trigger is this line from OpenSearch/server/src/main/java/org/opensearch/index/reindex/ClientScrollableHitSource.java Line 89 in aca2e9d
A regular search request will return with some failed shards mentioned in the response (unless The three forms of |
Not really right!? Since, _reindex is just copying over data from a source of truth. If the source of truth changes midway, it is expected that the copied data will be less than the original. But it is guaranteed to be more than the final source of truth since few deleted shards might have been copied over before they were deleted. |
Describe the bug
If an index gets deleted while the shard search request has not been sent, the overall search request results in 5xx error. That should not be the case, since the customer has explicitly deleted index and not an internal server error. No index/shard, no search results/delete by query
Related component
Search
To Reproduce
Expected behavior
During the search execution, only consider shard result as failure if the exception is anything other than index/shard not found. Eventually, if all the shards within search request do not return any results (probability of this is low), the 200 OK response can be changed to 404, but we should never be throwing 5xx.
Additional Details
No response
The text was updated successfully, but these errors were encountered: