Apache Solr open-source search software
SOLR-6056: Don't publish recovery state until recovery runs to avoid overwhelming the overseer state queue
Shalin Shekhar Mangar41fc77fa33eb
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 28318454f07..2782187f7ed 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -172,6 +172,9 @@ Bug Fixes* SOLR-6158: Relative configSetBase directories were resolved relative to thecontainer CWD, rather than solr.home. (Simon Endele, Alan Woodward)+* SOLR-6056: Don't publish recovery state until recovery runs to avoid overwhelming+ the overseer state queue. (Raintung Li, Mark Miller, shalin)+Other Changes---------------------diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.javaindex 9256c86314a..4166876ab46 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java@@ -852,21 +852,7 @@ public class CoreAdminHandler extends RequestHandlerBase {cname = "";}try (SolrCore core = coreContainer.getCore(cname)) {-if (core != null) {- // try to publish as recovering right away- try {- coreContainer.getZkController().publish(core.getCoreDescriptor(), ZkStateReader.RECOVERING);- } catch (InterruptedException e) {- Thread.currentThread().interrupt();- SolrException.log(log, "", e);- } catch (Throwable e) {- SolrException.log(log, "", e);- if (e instanceof Error) {- throw (Error) e;- }- }-core.getUpdateHandler().getSolrCoreState().doRecovery(coreContainer, core.getCoreDescriptor());} else {SolrException.log(log, "Could not find core to call recovery:" + cname);