📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当您使用任务管理API中不存在的ID访问或操作Elasticsearch中的任务时,会出现此错误。这可能是由于ID拼写错误,或者任务已被删除或从未存在。要解决此问题,您可以验证您使用的任务ID是否正确。如果任务应该存在,请检查您的任务创建过程以确保其正常运行。如果任务已被删除,您可能需要重新创建它,或者在可用的情况下从备份中恢复它。

日志上下文 #

日志 “the task with id [” + request.getId() + “] doesn’t exist” 的类名是 TransportDeleteRollupJobAction.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入背景的人参考:

if (pTasksMeta != null && pTasksMeta.getTask(request.getId()) != null) {
 super.doExecute(task; request; listener);
 } else {
 // If we couldn't find the job in the persistent task CS; it means it was deleted prior to this call;
 // no need to go looking for the allocated task
 listener.onFailure(new ResourceNotFoundException("the task with id [" + request.getId() + "] doesn't exist"));
 }  } else {
 // Delegates DeleteJob to elected master node; so it becomes the coordinating node.
 // Non-master nodes may have a stale cluster state that shows jobs which are cancelled