Apache Lucene open-source search software
SOLR-4467: While looking into what looks like some kind of resource leak, make this hard fail a soft logging fail
Mark Robert Milleredba3cc30996
diff --git a/solr/core/src/java/org/apache/solr/update/UpdateHandler.java b/solr/core/src/java/org/apache/solr/update/UpdateHandler.javaindex 0df9ffe32d6..fd22c920838 100644--- a/solr/core/src/java/org/apache/solr/update/UpdateHandler.java+++ b/solr/core/src/java/org/apache/solr/update/UpdateHandler.java@@ -96,7 +96,8 @@ public abstract class UpdateHandler implements SolrInfoMBean {File f = new File(tlogDir, file);boolean s = f.delete();if (!s) {- throw new SolrException(ErrorCode.SERVER_ERROR, "Could not remove tlog file:" + f.getAbsolutePath());+ log.error("Could not remove tlog file:" + f.getAbsolutePath());+ //throw new SolrException(ErrorCode.SERVER_ERROR, "Could not remove tlog file:" + f.getAbsolutePath());}}}