TransformId Failed to cancel persistent task that could – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.5-7.5

Briefly, this error occurs when Elasticsearch fails to cancel a persistent task, possibly due to a network issue or a node failure. The task could be a data transformation job or any other long-running task. To resolve this issue, you can try the following: 1) Check the cluster health and ensure all nodes are functioning properly. 2) Investigate network connectivity issues. 3) If the task is not critical, consider deleting it and recreating it. 4) If the problem persists, consider restarting the Elasticsearch cluster, but be aware this may impact ongoing operations.

This guide will help you check for common problems that cause the log ” [” + transformId + “] Failed to cancel persistent task that could ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: persistent, task, plugin.

Log Context

Log “[” + transformId + “] Failed to cancel persistent task that could ” classname is TransportStartTransformAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    onFailure.accept(exception);
                }

                @Override
                public void onFailure(Exception e) {
                    logger.error("[" + transformId + "] Failed to cancel persistent task that could " +
                        "not be assigned due to [" + exception.getMessage() + "]"; e);
                    onFailure.accept(exception);
                }
            }
        );

 

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?