mirror of https://github.com/apache/lucene.git
SOLR-8497: Merge indexes should mark it's directories as done rather than keep them around in the directory cache.
This commit is contained in:
parent
54216c6f65
commit
7d32456efa
|
@ -211,6 +211,9 @@ Bug Fixes
|
||||||
|
|
||||||
* SOLR-8599: After a failed connection during construction of SolrZkClient attempt to retry until a connection
|
* SOLR-8599: After a failed connection during construction of SolrZkClient attempt to retry until a connection
|
||||||
can be made. (Keith Laban, Dennis Gove)
|
can be made. (Keith Laban, Dennis Gove)
|
||||||
|
|
||||||
|
* SOLR-8497: Merge index does not mark the Directory objects it creates as 'done' and they are retained in the
|
||||||
|
Directory cache. (Sivlio Sanchez, Mark Miller)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -297,6 +297,7 @@ enum CoreAdminOperation {
|
||||||
IOUtils.closeWhileHandlingException(readersToBeClosed);
|
IOUtils.closeWhileHandlingException(readersToBeClosed);
|
||||||
for (Directory dir : dirsToBeReleased) {
|
for (Directory dir : dirsToBeReleased) {
|
||||||
DirectoryFactory dirFactory = core.getDirectoryFactory();
|
DirectoryFactory dirFactory = core.getDirectoryFactory();
|
||||||
|
dirFactory.doneWithDirectory(dir);
|
||||||
dirFactory.release(dir);
|
dirFactory.release(dir);
|
||||||
}
|
}
|
||||||
if (wrappedReq != null) wrappedReq.close();
|
if (wrappedReq != null) wrappedReq.close();
|
||||||
|
|
Loading…
Reference in New Issue