Received cancellation request for transform state – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.5-8.9

Briefly, this error occurs when Elasticsearch receives a request to cancel an ongoing data transformation process. This could be due to a manual cancellation request or an automatic cancellation due to system constraints. To resolve this issue, you can either wait for the cancellation process to complete or check if there are any system constraints causing the cancellation. If it’s the latter, you may need to optimize your system resources or adjust the configuration settings of your Elasticsearch cluster to prevent automatic cancellations.

This guide will help you check for common problems that cause the log ” [{}] received cancellation request for transform; state: [{}]. ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, request.

Log Context

Log “[{}] received cancellation request for transform; state: [{}].” classname is TransformTask.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

     * Termination in the task framework is essentially voluntary; as the allocated task can only be
     * shut down from the inside.
     */
    @Override
    public void onCancelled() {
        logger.info("[{}] received cancellation request for transform; state: [{}]."; getTransformId(); context.getTaskState());
        ClientTransformIndexer theIndexer = getIndexer();
        if (theIndexer != null && theIndexer.abort()) {
            // there is no background transform running; we can shutdown safely
            shutdown();
        }

 

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?