git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-02-27 15:02:36 +00:00
parent f3be2a55fa
commit 8f5a7b1232
2 changed files with 5 additions and 1 deletions

View File

@ -413,6 +413,10 @@ public class SolrDispatchFilter implements Filter
slices.addAll(clusterState.getSlices(collection));
}
}
if (slices == null || slices.size() == 0) {
return null;
}
Set<String> liveNodes = clusterState.getLiveNodes();
Iterator<Slice> it = slices.iterator();

View File

@ -167,7 +167,7 @@ public class ClusterState implements JSONWriter.Writable {
* @param coreNodeName in the form of nodeName_coreName (the name of the replica)
*/
public String getShardId(String coreNodeName) {
System.out.println("###### getShardId("+coreNodeName+") in " + collectionStates);
// System.out.println("###### getShardId("+coreNodeName+") in " + collectionStates);
for (DocCollection coll : collectionStates.values()) {
for (Slice slice : coll.getSlices()) {
if (slice.getReplicasMap().containsKey(coreNodeName)) return slice.getName();