How To Solve Issues Related to Log – The task wasnt found; status is not updated

How To Solve Issues Related to Log – The task wasnt found; status is not updated

Updated: Jan-20

Elasticsearch Version: 1.7-8.0

Background

Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.


To troubleshoot log “The task wasnt found; status is not updated” it’s important to understand a few problems related to Elasticsearch concepts cluster, persistent, task. See bellow important tips and explanations on these concepts

Log Context

Log”The task [{}] wasn’t found; status is not updated” classname is PersistentTasksClusterService.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                 } else {
                    if (tasksInProgress.hasTask(id)) {
                        logger.warn("The task [{}] with id [{}] was found but it has a different allocation id [{}]; status is not updated";
                                PersistentTasksCustomMetaData.getTaskWithId(currentState; id).getTaskName(); id; allocationId);
                    } else {
                        logger.warn("The task [{}] wasn't found; status is not updated"; id);
                    }
                    throw new ResourceNotFoundException("the task with id [" + id + "] and allocation id [" + allocationId + "] not found");
                }
            }





Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 No mapping found for field in order to sort on in ElasticSearch

56.47 K 102

Elasticsearch: Waiting for Long Running requests to complete

  0.42 K

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now