SOLR-5689: On reconnect, ZkController cancels election on first context rather than latest

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1567049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-02-11 11:11:55 +00:00
parent ce3b4becb4
commit 83debcaef0
2 changed files with 5 additions and 1 deletions

View File

@ -316,6 +316,9 @@ Bug Fixes
to properly specify discountOverlap option.
(Isaac Hebsh, Ahmet Arslan, Vitaliy Zhovtyuk, hossman)
* SOLR-5689: On reconnect, ZkController cancels election on first context rather
than latest. (Gregory Chanan, Mark Miller via shalin)
Optimizations
----------------------

View File

@ -222,7 +222,8 @@ public final class ZkController {
if (prevContext != null) {
prevContext.cancelElection();
}
overseerElector.setup(context);
overseerElector.joinElection(context, true);
zkStateReader.createClusterStateWatchersAndUpdate();