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

Opster Team

Aug-23, Version: 8-8.9

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.

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"

 

 [ratemypost]