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