mirror of https://github.com/apache/lucene.git
SOLR-2180: make sure core is closed even if closing request causes an exception
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1026044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f2c4fe1a2
commit
c723559a59
|
@ -230,8 +230,11 @@ public class EmbeddedSolrServer extends SolrServer
|
|||
throw new SolrServerException( ex );
|
||||
}
|
||||
finally {
|
||||
if (req != null) req.close();
|
||||
core.close();
|
||||
try {
|
||||
if (req != null) req.close();
|
||||
} finally {
|
||||
core.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue