Briefly, this error occurs when Elasticsearch is unable to clear the results of a previous migration before starting a new one. This could be due to issues with the cluster state, insufficient permissions, or a network problem. To resolve this, you can try restarting the Elasticsearch service, checking the cluster’s health and ensuring it’s green, or verifying that the user has the necessary permissions. If the issue persists, you may need to manually clear the migration results or check your network settings.
This guide will help you check for common problems that cause the log ” failed to clear migration results when starting new migration ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .
Log Context
Log “failed to clear migration results when starting new migration” classname is SystemIndexMigrator.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
listener.onResponse(newState); } @Override public void onFailure(Exception e) { logger.error("failed to clear migration results when starting new migration"; e); listener.onFailure(e); } }); logger.debug("submitted update task to clear migration results"); }