Noble Paul created SOLR-13319: --------------------------------- Summary: HashBasedRouter prints out the whole state,json instead of collection name Key: SOLR-13319 URL: https://issues.apache.org/jira/browse/SOLR-13319 Project: Solr Issue Type: Improvement Security Level: Public (Default Security Level. Issues are Public) Reporter: Noble Paul Assignee: Noble Paul
{code} 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} The exception prints out the collection object instead of just collection name -- 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