Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-4839: Set Jetty 9's new option to persist its temp directory (persistTempDirectory) - where the war is exploded - to true, so that the server/solr-webapp/ directory doesn't get deleted when Jetty shuts down gracefully

Steven Rowe1a2712241549
diff --git a/solr/server/contexts/solr-jetty-context.xml b/solr/server/contexts/solr-jetty-context.xml
index 306cfa0b8f2..2383639164c 100644
--- a/solr/server/contexts/solr-jetty-context.xml
+++ b/solr/server/contexts/solr-jetty-context.xml
@@ -5,4 +5,5 @@
<Set name="war"><Property name="jetty.base"/>/webapps/solr.war</Set>
<Set name="defaultsDescriptor"><Property name="jetty.base"/>/etc/webdefault.xml</Set>
<Set name="tempDirectory"><Property name="jetty.base" default="."/>/solr-webapp</Set>
+ <Set name="persistTempDirectory">true</Set>
</Configure>