Enabling upgrade mode must isolate datafeeds – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8-8.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 Elasticsearch operation.

Briefly, this error occurs when you try to enable upgrade mode in Elasticsearch while datafeeds are still active. Upgrade mode is a state that prepares your cluster for a version upgrade, but it requires all datafeeds to be isolated or stopped. To resolve this issue, you can either stop all datafeeds manually before enabling upgrade mode or use the “stop_datafeed” API to stop them programmatically. After the upgrade, remember to restart the datafeeds.

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 ” Enabling upgrade mode; must isolate datafeeds ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, upgrade.

Log Context

Log “Enabling upgrade mode; must isolate datafeeds” classname is TransportSetUpgradeModeAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                return;
            }

            // Did we change from disabled -> enabled?
            if (request.isEnabled()) {
                logger.info("Enabling upgrade mode; must isolate datafeeds");
                isolateDatafeeds(tasksCustomMetadata; isolateDatafeedListener);
            } else {
                logger.info("Disabling upgrade mode; must wait for tasks to not have AWAITING_UPGRADE assignment");
                persistentTasksService.waitForPersistentTasksCondition(
                    // Wait for jobs; datafeeds and analytics not to be "Awaiting upgrade"

 

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?