Skip to content
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

Exception in Explain API: async actions are left after rewrite #64281

Closed
spinscale opened this issue Oct 28, 2020 · 4 comments · Fixed by #87013
Closed

Exception in Explain API: async actions are left after rewrite #64281

spinscale opened this issue Oct 28, 2020 · 4 comments · Fixed by #87013
Assignees
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@spinscale
Copy link
Contributor

Elasticsearch version (bin/elasticsearch --version): 7.9.3

Steps to reproduce:

DELETE social-network

PUT social-network/_doc/data?refresh
{
  "key":"value"
}

GET social-network/_doc/data/_explain
{
  "query": {
    "bool": {
      "should": [
        {
          "terms": {
            "_id": {
              "index": "social-network",
              "id": "non-existent",
              "path": "does-not-matter"
            }
          }
        }
      ]
    }
  }
}

returns

# GET social-network/_doc/data/_explain
{
  "error" : {
    "root_cause" : [
      {
        "type" : "query_shard_exception",
        "reason" : "failed to create query: async actions are left after rewrite",
        "index_uuid" : "p5QUbQQySzagagpW9_Lf6w",
        "index" : "social-network"
      }
    ],
    "type" : "query_shard_exception",
    "reason" : "failed to create query: async actions are left after rewrite",
    "index_uuid" : "p5QUbQQySzagagpW9_Lf6w",
    "index" : "social-network",
    "caused_by" : {
      "type" : "illegal_state_exception",
      "reason" : "async actions are left after rewrite"
    }
  },
  "status" : 400
}
@spinscale spinscale added >bug needs:triage Requires assignment of a team area label labels Oct 28, 2020
@jimczi jimczi added :Search/Search Search-related issues that do not fall into other categories and removed needs:triage Requires assignment of a team area label labels Oct 28, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Oct 28, 2020
@jtibshirani jtibshirani self-assigned this Dec 17, 2020
@chmchmchm
Copy link

chmchmchm commented Oct 12, 2021

Hey, did this ever get fixed or is there a workaround?

@dlants
Copy link

dlants commented Apr 25, 2022

Still running into this on v8.1

@dlants
Copy link

dlants commented Apr 25, 2022

Possibly a similar issue as #29033 ?

jtibshirani added a commit that referenced this issue May 24, 2022
Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

Closes #64281.
jtibshirani added a commit that referenced this issue May 24, 2022
Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

Closes #64281.
jtibshirani added a commit that referenced this issue May 24, 2022
Some queries (like terms lookup queries) need to be rewritten on the
coordinator node, usually to fetch some resource. The explain action was
missing this rewrite step, which caused failures later when trying to execute
the query.

Closes #64281.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants