-
Couldn't load subscription status.
- Fork 2.3k
Closed
Closed
Copy link
Labels
Indexing & SearchSearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't working
Description
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
- Create 200 indices on a node
- Start expensive search request for all the indices
- Delete the indices on which request has not started execution yet
- The search request eventually results in 5xx error
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
kkhatua
Metadata
Metadata
Assignees
Labels
Indexing & SearchSearchSearch query, autocomplete ...etcSearch query, autocomplete ...etcbugSomething isn't workingSomething isn't working
Type
Projects
Status
✅ Done