Apache Lucene open-source search software
SOLR-4064: When there is an unexpected exception while trying to run the new leader process, the SolrCore will not correctly rejoin the election.
Mark Robert Miller6794693f304d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 78d7812b8c5..1cf039bc0b4 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -171,7 +171,10 @@ Bug Fixesconnection on a non-read-only database leak connections. Also expanded theSqlEntityProcessor test to sometimes use Derby as well as HSQLDB (Derby isone db affected by this bug). (Fenlor Sebastia, James Dyer)-++* SOLR-4064: When there is an unexpected exception while trying to run the new+ leader process, the SolrCore will not correctly rejoin the election.+ (Po Rui Via Mark Miller)Other Changes----------------------diff --git a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.javaindex 8924fc77b9a..67ecc770861 100644--- a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java+++ b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java@@ -249,7 +249,7 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {core.getCoreDescriptor().getCloudDescriptor().isLeader = false;// we could not publish ourselves as leader - rejoin election- rejoinLeaderElection(coreName, core);+ rejoinLeaderElection(leaderSeqPath, core);} finally {if (core != null) {core.close();