[ 
https://issues.apache.org/jira/browse/SOLR-7227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy Potter updated SOLR-7227:
---------------------------------
    Attachment: SOLR-7227.patch

Here's a patch that explodes the server/webapps/solr.war into 
server/solr-webapp/webapp and then removes solr.war.

This gives us a couple of nice things:
1) Jetty no longer has to extract the solr.war, so production installs can make 
the distribution folder read-only, i.e. /opt/solr can be read-only with all 
writing happening in /var/solr

2) No more need to extract the WAR to run tools like zkCli.sh and SolrCLI (esp. 
problematic on Windows where you don't have JAR if you're running with a JRE 
instead of JDK)

3) One step closer to truly no war

4) Reduces the size of the tgz file by about 12MB

nightly-smoke passes with this patch but I'd still appreciate a review of the 
smoke test python code I had to change

Lastly, I'm wondering if we shouldn't delete the server/webapps directory too? 
I left it in there now, but I think it should go away. And while we're at it, 
maybe we should rename the server/solr-webapp directory to something non-webapp 
specific, server/solr-??? (i'm terrible at naming things but seems like a 
reasonable time to remove any mention of webapp)

> Solr distribution archive should have the WAR file extracted already
> --------------------------------------------------------------------
>
>                 Key: SOLR-7227
>                 URL: https://issues.apache.org/jira/browse/SOLR-7227
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 5.0
>            Reporter: Timothy Potter
>            Assignee: Timothy Potter
>             Fix For: 5.3, Trunk
>
>         Attachments: SOLR-7227.patch
>
>
> Currently, there is still the solr.war file in the server/webapps directory, 
> which gets extracted upon first startup of Solr. It would be better to ship 
> Solr with the WAR already extracted, thus taking us one step closer to truly 
> not shipping a WAR file. Moreover, some users have reported not being able to 
> make /opt/solr truly read-only because of the need to extract the WAR 
> on-the-fly upon first startup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to