mirror of https://github.com/apache/lucene.git
SOLR-6235: Fix comparison to use coreNodeName on both sides in ElectionContext.startLeaderInitiatedRecoveryOnReplicas
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1610361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6069b78cc0
commit
ef998ce538
|
@ -3,6 +3,7 @@ package org.apache.solr.cloud;
|
|||
import org.apache.lucene.search.MatchAllDocsQuery;
|
||||
import org.apache.solr.common.SolrException;
|
||||
import org.apache.solr.common.SolrException.ErrorCode;
|
||||
import org.apache.solr.common.cloud.Replica;
|
||||
import org.apache.solr.common.cloud.Slice;
|
||||
import org.apache.solr.common.cloud.SolrZkClient;
|
||||
import org.apache.solr.common.cloud.ZkCmdExecutor;
|
||||
|
@ -362,7 +363,7 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
|
|||
if (replicaProps != null && replicaProps.size() > 0) {
|
||||
ZkCoreNodeProps coreNodeProps = null;
|
||||
for (ZkCoreNodeProps p : replicaProps) {
|
||||
if (p.getCoreName().equals(replicaCoreNodeName)) {
|
||||
if (((Replica)p.getNodeProps()).getName().equals(replicaCoreNodeName)) {
|
||||
coreNodeProps = p;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue