You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2019/03/12 22:13:00 UTC
[jira] [Created] (SOLR-13319) HashBasedRouter prints out the whole
state,json instead of collection name
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org