Cannot delete data frame – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.2-7.4

Briefly, this error occurs when you try to delete a data frame in Elasticsearch that either doesn’t exist or is currently in use. The data frame could be locked by another process or it could be a non-existent data frame. To resolve this issue, ensure that the data frame you’re trying to delete actually exists and is not currently in use. If it’s in use, you may need to stop the process that’s using it before you can delete it. Alternatively, there could be a typo in the data frame name, so double-check the name.

This guide will help you check for common problems that cause the log ” Cannot delete data frame [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: delete, plugin.

Log Context

Log “Cannot delete data frame [” class name is TransportDeleteDataFrameTransformAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 @Override
 protected void masterOperation(Request request; ClusterState state;
 ActionListener listener) {
 final PersistentTasksCustomMetaData pTasksMeta = state.getMetaData().custom(PersistentTasksCustomMetaData.TYPE);
 if (pTasksMeta != null && pTasksMeta.getTask(request.getId()) != null && request.isForce() == false) {
 listener.onFailure(new ElasticsearchStatusException("Cannot delete data frame [" + request.getId() +
 "] as the task is running. Stop the task first"; RestStatus.CONFLICT));
 } else {
 ActionListener stopTransformActionListener = ActionListener.wrap(
 stopResponse -> transformsConfigManager.deleteTransform(request.getId();
 ActionListener.wrap(

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?