Apache Solr open-source search software
SOLR-13429: HashBasedRouter logs the entire state.json when a slice is not found
Noble Paul25bd1cbb82f4
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.javaindex 07f2d35cf2d..4ac4e51a87c 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());}