I would like to cancel a long running search tasks using the Task Management API, but when I try to cancel such a task, I obtain the following error message:
{
"node_failures" : [ {
"type" : "failed_node_exception",
"reason" : "Failed node [EEXZOO90RNGXkReo_sXfig]",
"caused_by" : {
"type" : "resource_not_found_exception",
"reason" : "task [EEXZOO90RNGXkReo_sXfig:255615824] doesn't support cancellation"
}
} ],
"nodes" : { }
}
Is there currently a way to cancel such a task?
Search does not currently support cancellation. I believe the only tasks supporting cancellation at the moment are Reindex and Delete-By-Query. We'd like to have cancellable search in the future, but because the task management framework is still very new, it may be a while before that functionality is integrated everywhere.
Thanks for your answer, we are very interested to have this feature. Therefore I believe we are going to dive into the code to see how we could implemented this functionality. Any pointers?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.