[ 
https://issues.apache.org/jira/browse/SOLR-11508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273602#comment-16273602
 ] 

Shawn Heisey commented on SOLR-11508:
-------------------------------------

I can see where you're coming from, but I believe that we shouldn't make this 
change.  Consider this an official -1 vote.  I don't often use that.

The change is very much a radical shift in how Solr arranges data on the disk, 
and is NOT what the solr.data.home feature was designed to do.  I suspect that 
the number of users who upgrade without ever reading release notes is high 
enough that there would be a lot of reports of "I just upgraded Solr and now my 
cores aren't loading".

For new users, I am sticking with my assertion that core.properties is not part 
of the core data.  Note that if you change coreRootDirectory to the data home 
in solr.xml, that effectively relocates the entirety of all cores to the data 
home ... which is unnecessary, because just setting the solr home is going to 
do the same thing -- coreRootDirectory defaults to the solr home.

I would rather update the documentation to state that solr.data.home only 
affects dataDir, and that setting the solr home is often the more appropriate 
choice, because it affects the entire core.

It doesn't look like SOLR_DATA_HOME is mentioned in the stock include script, 
so unless we add that, we won't need any documentation comments there.

> core.properties should be stored $solr.data.home/$core.name
> -----------------------------------------------------------
>
>                 Key: SOLR-11508
>                 URL: https://issues.apache.org/jira/browse/SOLR-11508
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Marc Morissette
>
> Since Solr 7, it is possible to store Solr cores in separate disk locations 
> using solr.data.home (see SOLR-6671). This is very useful where running Solr 
> in Docker where data must be stored in a directory which is independent from 
> the rest of the container.
> Unfortunately, while core data is stored in 
> {{$\{solr.data.home}/$\{core.name}/index/...}}, core.properties is stored in 
> {{$\{solr.solr.home}/$\{core.name}/core.properties}}.
> Reading SOLR-6671 comments, I think this was the expected behaviour but I 
> don't think it is the correct one.
> In addition to being inelegant and counterintuitive, this has the drawback of 
> stripping a core of its metadata and breaking core discovery when a Solr 
> installation is redeployed, whether in Docker or not.
> core.properties is mostly metadata and although it contains some 
> configuration, this configuration is specific to the core it accompanies. I 
> believe it should be stored in solr.data.home, with the rest of the data it 
> describes.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to