Submitting state update task to remove nodes due to decommissioning – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 2.4-2.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch is in the process of removing certain nodes from the cluster due to decommissioning. This could be due to manual decommissioning or automatic decommissioning triggered by certain conditions. To resolve this issue, ensure that the decommissioning process is completed successfully. If it’s manual decommissioning, verify that the nodes are no longer needed. If it’s automatic, check the conditions that triggered it and adjust the cluster settings if necessary. Also, monitor the cluster health and rebalance the load if required after the nodes are removed.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” submitting state update task to remove [{}] nodes due to decommissioning ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: cluster, task.

Log Context

Log “submitting state update task to remove [{}] nodes due to decommissioning” classname is DecommissionController.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

        nodesToBeDecommissioned.forEach(discoveryNode -> {
            final NodeRemovalClusterStateTaskExecutor.Task task = new NodeRemovalClusterStateTaskExecutor.Task(discoveryNode; reason);
            nodesDecommissionTasks.put(task; nodeRemovalExecutor);
        });

        logger.info("submitting state update task to remove [{}] nodes due to decommissioning"; nodesToBeDecommissioned.toString());
        clusterService.submitStateUpdateTasks(
            "node-decommissioned";
            nodesDecommissionTasks;
            ClusterStateTaskConfig.build(Priority.URGENT);
            nodeRemovalExecutor

 

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?

Get expert answers on Elasticsearch/OpenSearch