You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2019/04/29 20:08:25 UTC
[lucene-solr] branch master updated: SOLR-13429: HashBasedRouter
logs the entire state.json when a slice is not found
This is an automated email from the ASF dual-hosted git repository.
noble pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 25bd1cb SOLR-13429: HashBasedRouter logs the entire state.json when a slice is not found
25bd1cb is described below
commit 25bd1cbb82f45aed67bca129e0c38ec300e7142d
Author: Noble Paul <no...@apache.org>
AuthorDate: Tue Apr 30 06:07:51 2019 +1000
SOLR-13429: HashBasedRouter logs the entire state.json when a slice is not found
---
solr/solrj/src/java/org/apache/solr/common/cloud/HashBasedRouter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/HashBasedRouter.java b/solr/solrj/src/java/org/apache/solr/common/cloud/HashBasedRouter.java
index 07f2d35..4ac4e51 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/HashBasedRouter.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/HashBasedRouter.java
@@ -64,7 +64,7 @@ public abstract class HashBasedRouter extends DocRouter {
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);
+ throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "No active slice servicing hash code " + Integer.toHexString(hash) + " in " + collection.getName());
}