SOLR-4064: When there is an unexpected exception while trying to run the new leader process, the SolrCore will not correctly rejoin the election.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1408398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-11-12 18:49:06 +00:00
parent b5164f0c5d
commit 6794693f30
2 changed files with 5 additions and 2 deletions

View File

@ -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
----------------------

View File

@ -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();