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

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法找到与特定 Rollup Job 关联的任务时,就会出现此错误。这可能是由于作业被删除、尚未创建或使用了错误的作业 ID 导致的。要解决此问题,您可以验证作业 ID,确保作业已创建且未被删除。如果问题仍然存在,请考虑重新创建作业或检查 Elasticsearch 集群的任何潜在问题,这些可能导致任务消失或失败。

日志上下文 #

日志"Task for Rollup Job [" + request.getId() + “] not found"的类名是 TransportStartRollupAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

}  // Either the job doesn't exist (the user didn't create it yet) or was deleted after the StartAPI executed.
 // In either case; let the user know
 if (tasks.size() == 0) {
 throw new ResourceNotFoundException("Task for Rollup Job [" + request.getId() + "] not found");
 }  assert tasks.size() == 1;  boolean allStarted = tasks.stream().allMatch(StartRollupJobAction.Response::isStarted);