版本: 6.8-6.8
简而言之,当您尝试在 Elasticsearch 中强制删除数据流(datafeed),而数据流任务仍在运行时,会发生此错误。系统不支持此操作,因为它可能导致数据不一致或丢失。要解决此问题,您可以先使用"停止数据流 API"停止数据流任务,然后再进行删除。或者,您可以使用"删除数据流 API",并将"force"参数设置为"false",以确保仅在数据流未运行时才删除它。
日志上下文 #
日志"Force delete datafeed is not supported because the datafeed task"的类名是 TransportIsolateDatafeedAction.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
} String executorNode = datafeedTask.getExecutorNode();
DiscoveryNodes nodes = state.nodes();
if (nodes.resolveNode(executorNode).getVersion().before(Version.V_5_5_0)) {
listener.onFailure(new ElasticsearchException("Force delete datafeed is not supported because the datafeed task " +
"is running on a node [" + executorNode + "] with a version prior to " + Version.V_5_5_0));
return;
} request.setNodes(datafeedTask.getExecutorNode());





