Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr 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.txt
index 78d7812b8c5..1cf039bc0b4 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -171,7 +171,10 @@ Bug Fixes
connection on a non-read-only database leak connections. Also expanded the
SqlEntityProcessor test to sometimes use Derby as well as HSQLDB (Derby is
one 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.java
index 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();