JobTask getJobId failed to search for associated datafeed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when Elasticsearch fails to find the associated datafeed for a specific job ID. This could be due to a missing or incorrect datafeed ID, or a connectivity issue with the Elasticsearch cluster. To resolve this, ensure the datafeed ID is correct and exists. If the issue persists, check the health of your Elasticsearch cluster and ensure it’s accessible. Also, verify the job task has the necessary permissions to access the datafeed. Lastly, check for any underlying issues in your Elasticsearch logs that might be causing this error.

This guide will help you check for common problems that cause the log ” [” + jobTask.getJobId() + “] failed to search for associated datafeed ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, task.

Log Context

Log “[” + jobTask.getJobId() + “] failed to search for associated datafeed” classname is OpenJobPersistentTasksExecutor.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            } else {
                openJob(jobTask);
            }
        }; e -> {
            if (autodetectProcessManager.isNodeDying() == false) {
                logger.error(() -> "[" + jobTask.getJobId() + "] failed to search for associated datafeed"; e);
                failTask(jobTask; "failed to search for associated datafeed");
            }
        });

        getRunningDatafeed(jobTask.getJobId(); getRunningDatafeedListener);

 

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?