Force delete datafeed is not supported because the datafeed task – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-6.8

Briefly, this error occurs when you try to forcefully delete a datafeed in Elasticsearch while the datafeed task is still running. The system doesn’t support this action as it could lead to data inconsistency or loss. To resolve this issue, you can first stop the datafeed task using the ‘stop datafeed API’ and then proceed with the deletion. Alternatively, you can use the ‘delete datafeed API’ with the ‘force’ parameter set to ‘false’ to ensure the datafeed is only deleted when it’s not running.

This guide will help you check for common problems that cause the log ” Force delete datafeed is not supported because the datafeed task ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, delete, task.

Log Context

Log “Force delete datafeed is not supported because the datafeed task” class name is TransportIsolateDatafeedAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }  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());

 

 [ratemypost]