Search over non-existent index name with wildcard returns incorrect scroll_id
#85709
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Elasticsearch Version
7.17.1
Installed Plugins
No response
Java Version
bundled
OS Version
Problem Description
On 7.17.0 running a search query where index name is a wildcard that doesn't match any indices returns payload without
scroll_id
:On 7.17.1 running the same query returns
scroll_id
:Returning
scroll_id
is misleading – if the client attempts to fetch next page exception is thrown:This
scroll_id
is always the same. Its decoded value is\x14include_context_uuid\x0EqueryThenFetch\x00
– just the header of the real scroll id. But there's no shards to search over – hence the exception on fetching the next page.Steps to Reproduce
Running
GET /non_existent*/_search?scroll=1m&size=10
should not returnscroll_id
as part of the payload as it was in 7.17.0.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: