mirror of https://github.com/apache/lucene.git
SOLR-4187: NPE on Directory release
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
96926cf07d
commit
3ab1790be7
|
@ -81,6 +81,7 @@ New Features
|
||||||
- SOLR-4033: Consistently use the solrconfig.xml lockType everywhere.
|
- SOLR-4033: Consistently use the solrconfig.xml lockType everywhere.
|
||||||
(Mark Miller, Markus Jelsma)
|
(Mark Miller, Markus Jelsma)
|
||||||
- SOLR-4144: Replication using too much RAM. (yonik, Markus Jelsma)
|
- SOLR-4144: Replication using too much RAM. (yonik, Markus Jelsma)
|
||||||
|
- SOLR-4187: NPE on Directory release (Mark Miller, Markus Jelsma)
|
||||||
|
|
||||||
* SOLR-1972: Add extra statistics to RequestHandlers - 5 & 15-minute reqs/sec
|
* SOLR-1972: Add extra statistics to RequestHandlers - 5 & 15-minute reqs/sec
|
||||||
rolling averages; median, 75th, 95th, 99th, 99.9th percentile request times
|
rolling averages; median, 75th, 95th, 99th, 99.9th percentile request times
|
||||||
|
|
|
@ -258,11 +258,12 @@ public final class SolrCore implements SolrInfoMBean {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
SolrException.log(log, "", e);
|
SolrException.log(log, "", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
if (dir != null) {
|
||||||
try {
|
try {
|
||||||
getDirectoryFactory().release(dir);
|
getDirectoryFactory().release(dir);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
SolrException.log(log, "", e);
|
SolrException.log(log, "", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!result.equals(lastNewIndexDir)) {
|
if (!result.equals(lastNewIndexDir)) {
|
||||||
|
|
Loading…
Reference in New Issue