Skip to content

Commit

Permalink
Test fixes for Solr 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan Chattopadhyaya committed Nov 28, 2024
1 parent 5afa949 commit 7b93f1c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.solr.handler.dataimport;

import org.apache.commons.io.FileUtils;
import org.apache.solr.embedded.JettyConfig;
import org.apache.solr.embedded.JettySolrRunner;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.request.DirectXmlRequest;
Expand Down Expand Up @@ -184,6 +185,10 @@ private JettySolrRunner createAndStartJetty(SolrInstance instance) throws Except
return jetty;
}

private static JettyConfig buildJettyConfig(String context) {
return JettyConfig.builder().setContext(context).stopAtShutdown(true).build();
}

static String xml = "<root>\n"
+ "<b>\n"
+ " <id>1</id>\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.commons.io.FileUtils;
import org.apache.lucene.util.IOUtils;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.embedded.JettyConfig;
import org.apache.solr.embedded.JettySolrRunner;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.common.SolrInputDocument;
Expand Down Expand Up @@ -371,4 +372,8 @@ private JettySolrRunner createAndStartJetty(SolrInstance instance) throws Except
return jetty;
}

private static JettyConfig buildJettyConfig(String context) {
return JettyConfig.builder().setContext(context).stopAtShutdown(true).build();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
<indexConfig>
<useCompoundFile>${useCompoundFile:false}</useCompoundFile>
<lockType>${solr.lock.type:single}</lockType>
</indexConfig>

<!-- Used to specify an alternate directory to hold all index data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
<indexConfig>
<useCompoundFile>${useCompoundFile:false}</useCompoundFile>
<lockType>${solr.lock.type:single}</lockType>
</indexConfig>

<!-- Used to specify an alternate directory to hold all index data
Expand Down

0 comments on commit 7b93f1c

Please sign in to comment.