NIHVIVO-2065 downgrade the "warn" level log statement that happens if we fail on the first attempt to delete the search index.
This commit is contained in:
parent
2d6d876267
commit
0055398674
1 changed files with 9 additions and 5 deletions
|
@ -348,15 +348,19 @@ public class LuceneIndexer implements IndexerIface {
|
||||||
String[] children = dir.list();
|
String[] children = dir.list();
|
||||||
for (int i=0; i<children.length; i++) {
|
for (int i=0; i<children.length; i++) {
|
||||||
File child = new File(dir, children[i]);
|
File child = new File(dir, children[i]);
|
||||||
boolean success = deleteDir(child);
|
boolean childDeleted = deleteDir(child);
|
||||||
if (!success) {
|
if (!childDeleted) {
|
||||||
log.warn("failed to delete " + child.getAbsolutePath());
|
log.debug("failed to delete " + child.getAbsolutePath());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// The directory is now empty so delete it
|
// The directory is now empty so delete it
|
||||||
return dir.delete();
|
boolean deleted = dir.delete();
|
||||||
|
if (!deleted) {
|
||||||
|
log.debug("failed to delete " + dir.getAbsolutePath());
|
||||||
|
}
|
||||||
|
return deleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkStartPreconditions() {
|
private void checkStartPreconditions() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue