Noble Paul created SOLR-13429:
---------------------------------

             Summary: HashBasedRouter logs the entire state.json when a slice 
is not found
                 Key: SOLR-13429
                 URL: https://issues.apache.org/jira/browse/SOLR-13429
             Project: Solr
          Issue Type: Task
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Noble Paul



{code:java}
protected Slice hashToSlice(int hash, DocCollection collection) {
    final Slice[] slices = collection.getActiveSlicesArr();
    for (Slice slice : slices) {
      Range range = slice.getRange();
      if (range != null && range.includes(hash)) return slice;
    }
    throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "No active 
slice servicing hash code " + Integer.toHexString(hash) + " in " + collection);
  }
{code}

Just the collection name should be fine




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to