async search returns is_partial:false when local cluster has shard errors
Steps to Reproduce
PUT local1
{}
PUT local1/_mapping
{
"properties": {
"value": {
"type": "keyword"
}
}
}
PUT local1/_doc/1
{
"value" : "foo1"
}
PUT local2
{}
PUT local2/_mapping
{
"properties": {
"value": {
"type": "keyword"
}
}
}
PUT local2/_doc/1
{
"value" : "foo2"
}
POST /local*/_async_search
{
"query": {
"error_query": {
"indices": [
{
"error_type": "exception",
"message": "local shard failure message 123",
"name": "local2"
}
]
}
}
}
In the response, notice how is_partial is false. However, results are partial because local2 shard failed to return results and only a single hit is returned. Complete results should include 2 hits
Elasticsearch Version
main
Installed Plugins
none
Java Version
bundled
OS Version
21.6.0 Darwin Kernel Version 21.6.0
Problem Description
async search returns is_partial:false when local cluster has shard errors
Steps to Reproduce
In the response, notice how
is_partial
is false. However, results are partial becauselocal2
shard failed to return results and only a single hit is returned. Complete results should include 2 hitsLogs (if relevant)
No response