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:
markrmiller 2016-02-23 13:15:01 -05:00
parent 54216c6f65
commit 7d32456efa
2 changed files with 4 additions and 0 deletions

View File

@ -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
---------------------- ----------------------

View File

@ -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();