catch throwable for tests (assert fails) - not just exception

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1363333 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-07-19 13:50:32 +00:00
parent b1fb39754b
commit ef16608cb1

View File

@ -94,15 +94,15 @@ public final class DefaultSolrCoreState extends SolrCoreState {
} catch (InterruptedException e) {}
}
if (indexWriter != null) {
try {
indexWriter.close();
} catch (Exception e) {
SolrException.log(log, "Error closing old IndexWriter", e);
}
}
try {
if (indexWriter != null) {
try {
indexWriter.close();
} catch (Throwable t) {
SolrException.log(log, "Error closing old IndexWriter", t);
}
}
indexWriter = createMainIndexWriter(core, "DirectUpdateHandler2", false,
true);
// we need to null this so it picks up the new writer next get call