lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r906744 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/ParallelMultiSearcher.java
Date Fri, 05 Feb 2010 00:05:35 GMT
Author: uschindler
Date: Fri Feb  5 00:05:34 2010
New Revision: 906744

URL: http://svn.apache.org/viewvc?rev=906744&view=rev
Log:
LUCENE-2249: ParallelMultiSearcher should shut down thread pool on close

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/search/ParallelMultiSearcher.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=906744&r1=906743&r2=906744&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Fri Feb  5 00:05:34 2010
@@ -103,6 +103,9 @@
 
 * LUCENE-2235: Implement missing PerFieldAnalyzerWrapper.getOffsetGap().
   (Javier Godoy via Uwe Schindler)
+
+* LUCENE-2249: ParallelMultiSearcher should shut down thread pool on
+  close.  (Martin Traverso via Uwe Schindler)
   
 New features
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/ParallelMultiSearcher.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/ParallelMultiSearcher.java?rev=906744&r1=906743&r2=906744&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/ParallelMultiSearcher.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/ParallelMultiSearcher.java Fri Feb
 5 00:05:34 2010
@@ -175,7 +175,13 @@
      searchables[i].search(weight, filter, hc);
    }
   }
-  
+
+  @Override
+  public void close() throws IOException {
+    executor.shutdown();
+    super.close();
+  }
+
   @Override
   HashMap<Term, Integer> createDocFrequencyMap(Set<Term> terms) throws IOException
{
     final Term[] allTermsArray = terms.toArray(new Term[terms.size()]);



Mime
View raw message