Permalink
Browse files

DS-1970 to many open files exception

 when update lucene index
  • Loading branch information...
1 parent 0cd0882 commit ef1cb4ee0f72cdb806eee2177a4e0b7df537b8ff @rradillen rradillen committed with Hardy Pottinger Apr 15, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 dspace-api/src/main/java/org/dspace/search/DSQuery.java
@@ -475,6 +475,9 @@ protected static synchronized IndexSearcher getSearcher(Context c)
lastModified = reader.getVersion();
searcher = new IndexSearcher(reader);
+ } else {
+ reader.close();
+ searchDir.close();
}
return searcher;

0 comments on commit ef1cb4e

Please sign in to comment.