[ 
https://issues.apache.org/jira/browse/SOLR-13429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16829674#comment-16829674
 ] 

ASF subversion and git services commented on SOLR-13429:
--------------------------------------------------------

Commit 94b9f7ed1cf3d26fed340d777b4105766dd5c45f in lucene-solr's branch 
refs/heads/branch_8x from Noble Paul
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=94b9f7e ]

SOLR-13429: HashBasedRouter logs the entire state.json when a slice is not found


> 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
>            Assignee: Noble Paul
>            Priority: Trivial
>
> {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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to