You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/01/11 07:58:30 UTC

lucene-solr:jira/solr-11702: SOLR-11702: Cleanup ElectionContext

Repository: lucene-solr
Updated Branches:
  refs/heads/jira/solr-11702 c16385142 -> 116fe4ad2


SOLR-11702: Cleanup ElectionContext


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/116fe4ad
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/116fe4ad
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/116fe4ad

Branch: refs/heads/jira/solr-11702
Commit: 116fe4ad2af3372e7727293015d1b0206635d943
Parents: c163851
Author: Cao Manh Dat <da...@apache.org>
Authored: Thu Jan 11 14:58:16 2018 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Thu Jan 11 14:58:16 2018 +0700

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/cloud/ElectionContext.java | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/116fe4ad/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
----------------------------------------------------------------------
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 6302fe2..ea196d2 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
@@ -303,7 +303,6 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
  InterruptedException, IOException {
     String coreName = leaderProps.getStr(ZkStateReader.CORE_NAME_PROP);
     ActionThrottle lt;
-    String coreNodeName;
     try (SolrCore core = cc.getCore(coreName)) {
       if (core == null ) {
         if (cc.isShutDown()) {
@@ -312,7 +311,6 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
           throw new SolrException(ErrorCode.SERVER_ERROR, "SolrCore not found:" + coreName + " in " + cc.getLoadedCoreNames());
         }
       }
-      coreNodeName = core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName();
       MDCLoggingContext.setCore(core);
       lt = core.getUpdateHandler().getSolrCoreState().getLeaderThrottle();
     }