-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bug
Description
Elasticsearch version: 6.2.2
Plugins installed: -
JVM version: 1.8.0_161
OS version : docker image
Description of the problem including expected versus actual behavior:
The validate API is failing when attempting to validate a valid terms query. The following error message is shown:
nested: IllegalStateException[async actions are left after rewrite];; java.lang.IllegalStateException: async actions are left after rewrite
Steps to reproduce:
PUT twitter
{}
PUT twitter/_mapping/_doc
{
"properties": {
"user": { "type": "integer" },
"followers": { "type": "integer" }
}
}
POST twitter/_validate/query?explain=true
{
"query": {
"terms": {
"user": {
"index": "twitter",
"type": "_doc",
"id": "2",
"path": "followers"
}
}
}
Provide logs (if relevant):
Response from the validate API:
{
"valid": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"explanations": [
{
"index": "twitter",
"valid": false,
"error": """
[twitter/v460ppW7Q6SMXFcqf1Q5SA] QueryShardException[failed to create query: {
"terms" : {
"user" : {
"index" : "twitter",
"type" : "_doc",
"id" : "2",
"path" : "followers"
},
"boost" : 1.0
}
}]; nested: IllegalStateException[async actions are left after rewrite];; java.lang.IllegalStateException: async actions are left after rewrite
"""
}
]
}
Metadata
Metadata
Assignees
Labels
:Search/SearchSearch-related issues that do not fall into other categoriesSearch-related issues that do not fall into other categories>bug