[STORE] add debug logging if delete fails

This commit is contained in:
Simon Willnauer 2015-02-23 20:56:10 +01:00
parent 9700fe0367
commit 1848d1ba8b

View File

@ -565,7 +565,8 @@ public class Store extends AbstractIndexShardComponent implements Closeable, Ref
if (!sourceMetaData.contains(existingFile) && !Store.isChecksum(existingFile)) {
try {
dir.deleteFile(reason, existingFile);
} catch (Exception e) {
} catch (Exception ex) {
logger.debug("failed to delete file [{}]", ex, existingFile);
// ignore, we don't really care, will get deleted later on
}
}