mirror of
https://github.com/apache/lucene.git
synced 2025-02-28 21:39:25 +00:00
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:
parent
b1fb39754b
commit
ef16608cb1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user