lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1209342 - /lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java
Date Fri, 02 Dec 2011 02:56:55 GMT
Author: markrmiller
Date: Fri Dec  2 02:56:54 2011
New Revision: 1209342

URL: http://svn.apache.org/viewvc?rev=1209342&view=rev
Log:
call destroy on solr filter before shutting down jetty to prevent dir being left open sometimes

Modified:
    lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java

Modified: lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java?rev=1209342&r1=1209341&r2=1209342&view=diff
==============================================================================
--- lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java
(original)
+++ lucene/dev/branches/solrcloud/solr/core/src/test/org/apache/solr/cloud/FullDistributedZkTest.java
Fri Dec  2 02:56:54 2011
@@ -105,6 +105,8 @@ public class FullDistributedZkTest exten
     
     public JettySolrRunner killShard(String slice, int index) throws Exception {
       JettySolrRunner jetty = shardToJetty.get(slice).get(index).jetty;
+      // get a clean shutdown so that no dirs are left open...
+      ((SolrDispatchFilter)jetty.getDispatchFilter().getFilter()).destroy();
       jetty.stop();
       return jetty;
     }



Mime
View raw message