I can't cancel task API enrich _execute

Hello guys!

I have a problem and I believe it could be a bug!
I created an enrichment policy pointing to an alias with 3 indexes. I started the API "_enrich / policy/checa-fone/_execute" and the following error is presented:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "transport_serialization_exception",
        "reason" : "Failed to deserialize response from handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler]"
      }
    ],
    "type" : "transport_serialization_exception",
    "reason" : "Failed to deserialize response from handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler]",
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Unknown NamedWriteable [org.elasticsearch.tasks.Task$Status][enrich-policy-execution]"
    }
  },
  "status" : 500
}

I tried to cancel the task but it is not canceled preventing the process from being stopped.

Has anyone gone through this experience and could help with this issue?

Thank you!

Hi,
I have the same problem,
When executing an enrichment policy with the flag wait_for_competion=false,
I often get the same error afterward when looking if the task is completed from the task API.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.