Apache Solr open-source search software
SOLR-15280 Misleading error message in HdfsDirectoryFactory (#44)
András Salamonbadb55aeb29f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex a90594b0ea1..0e1099dcd1e 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -280,6 +280,8 @@ Other Changesalternative implementations of where ConfigSets come from.(Nazerke Seidan, David Smiley)+* SOLR-15280: Fixed misleading error message in HdfsDirectoryFactory (Andras Salamon via janhoy)+* SOLR-15341: Remove indexHeapUsageBytes info from /admin/segments and /admin/luke because it's nolonger available in Lucene -- LUCENE-9387. (janhoy, David Smiley)diff --git a/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java b/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.javaindex f83ededbad6..6b7c105b094 100644--- a/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java+++ b/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java@@ -450,8 +450,8 @@ public class HdfsDirectoryFactory extends CachingDirectoryFactory implements Soltry {return fileSystem.getContentSummary(hdfsDirPath).getLength();} catch (IOException e) {- log.error("Error checking if hdfs path exists", e);- throw new SolrException(ErrorCode.SERVER_ERROR, "Error checking if hdfs path exists", e);+ log.error("Error calculating size", e);+ throw new SolrException(ErrorCode.SERVER_ERROR, "Error calculating size", e);}}