mirror of https://github.com/apache/lucene.git
cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1450795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f3be2a55fa
commit
8f5a7b1232
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue