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:
Mark Robert Miller 2012-02-09 03:15:44 +00:00
parent 3f9389b3ea
commit dfdd1b7363
1 changed files with 1 additions and 1 deletions

View File

@ -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);