You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/04/29 20:09:00 UTC
[jira] [Commented] (SOLR-13429) HashBasedRouter logs the entire
state.json when a slice is not found
[ https://issues.apache.org/jira/browse/SOLR-13429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16829673#comment-16829673 ]
ASF subversion and git services commented on SOLR-13429:
--------------------------------------------------------
Commit 25bd1cbb82f45aed67bca129e0c38ec300e7142d in lucene-solr's branch refs/heads/master from Noble Paul
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=25bd1cb ]
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
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org