mirror of https://github.com/apache/lucene.git
get core first thing before try
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1245242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
efa20a5149
commit
c5f84d4dcf
|
@ -109,8 +109,8 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
|
||||||
void runLeaderProcess(String leaderSeqPath, boolean weAreReplacement)
|
void runLeaderProcess(String leaderSeqPath, boolean weAreReplacement)
|
||||||
throws KeeperException, InterruptedException, IOException {
|
throws KeeperException, InterruptedException, IOException {
|
||||||
if (cc != null) {
|
if (cc != null) {
|
||||||
SolrCore core = null;
|
|
||||||
String coreName = leaderProps.get(ZkStateReader.CORE_NAME_PROP);
|
String coreName = leaderProps.get(ZkStateReader.CORE_NAME_PROP);
|
||||||
|
SolrCore core = null;
|
||||||
try {
|
try {
|
||||||
core = cc.getCore(coreName);
|
core = cc.getCore(coreName);
|
||||||
if (core == null) {
|
if (core == null) {
|
||||||
|
|
Loading…
Reference in New Issue