mirror of https://github.com/apache/lucene.git
SOLR-3108: Error in SolrCloud's replica lookup code when replica's are hosted in same Solr instance (fix only)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1242212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f9389b3ea
commit
dfdd1b7363
|
@ -442,7 +442,7 @@ public class ZkStateReader {
|
|||
String filterNodeName = thisNodeName + "_" + coreName;
|
||||
for (Entry<String,ZkNodeProps> entry : shardMap.entrySet()) {
|
||||
ZkCoreNodeProps nodeProps = new ZkCoreNodeProps(entry.getValue());
|
||||
String coreNodeName = nodeProps.getNodeName() + "_" + coreName;
|
||||
String coreNodeName = nodeProps.getNodeName() + "_" + nodeProps.getCoreName();
|
||||
if (cloudState.liveNodesContain(nodeProps.getNodeName()) && !coreNodeName.equals(filterNodeName)) {
|
||||
if (stateFilter == null || stateFilter.equals(nodeProps.getState())) {
|
||||
nodes.add(nodeProps);
|
||||
|
|
Loading…
Reference in New Issue