SOLR-4467: While looking into what looks like some kind of resource leak, make this hard fail a soft logging fail

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1447308 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-02-18 15:17:23 +00:00
parent 17cdd3a46b
commit edba3cc309
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ public abstract class UpdateHandler implements SolrInfoMBean {
File f = new File(tlogDir, file); File f = new File(tlogDir, file);
boolean s = f.delete(); boolean s = f.delete();
if (!s) { 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());
} }
} }
} }