From dfdd1b7363afa9e56a47fec7b92960468edd7763 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Thu, 9 Feb 2012 03:15:44 +0000 Subject: [PATCH] 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 --- .../src/java/org/apache/solr/common/cloud/ZkStateReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java index 092c77cde80..8b714de3b80 100644 --- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java +++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java @@ -442,7 +442,7 @@ public class ZkStateReader { String filterNodeName = thisNodeName + "_" + coreName; for (Entry 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);