Core admin action "CREATE" fails to persist some settings in solr.xml with Solr 4.3

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Core admin action "CREATE" fails to persist some settings in solr.xml with Solr 4.3

André Widhani
When I create a core with Core admin handler using these request parameters:

action=CREATE
&name=core-tex69bbum21ctk1kq6lmkir-index3
&schema=/etc/opt/dcx/solr/conf/schema.xml
&instanceDir=/etc/opt/dcx/solr/
&config=/etc/opt/dcx/solr/conf/solrconfig.xml
&dataDir=/var/opt/dcx/solr/core-tex69bbum21ctk1kq6lmkir-index3

in Solr 4.1, solr.xml would have the following entry:

    <core schema="/etc/opt/dcx/solr/conf/schema.xml" loadOnStartup="true" instanceDir="/etc/opt/dcx/solr/" transient="false" name="core-tex69bbum21ctk1kq6lmkir-index3" config="/etc/opt/dcx/solr/conf/solrconfig.xml" dataDir="/var/opt/dcx/solr/core-tex69bbum21ctk1kq6lmkir-index3/" collection="core-tex69bbum21ctk1kq6lmkir-index3"/>

while in Solr 4.3 schema, config and dataDir will be missing:

    <core loadOnStartup="true" instanceDir="/etc/opt/dcx/solr/" transient="false" name="core-tex69bbum21ctk1kq6lmkir-index3" collection="core-tex69bbum21ctk1kq6lmkir-index3"/>

The new core would use the settings specified during CREATE, but after a Solr restart they are lost (fall back to some defaults), as they are not persisted in solr.xml.

Is this a bug or am I doing something wrong here?

André
Reply | Threaded
Open this post in threaded view
|

Re: Core admin action "CREATE" fails to persist some settings in solr.xml with Solr 4.3

Erick Erickson
I'm beginning to hate solr.xml....

That stuff should definitely be persisted, please raise a JIRA and
assign it to me.

Thanks,
Erick

On Thu, May 23, 2013 at 5:10 PM, André Widhani <[hidden email]> wrote:

> When I create a core with Core admin handler using these request parameters:
>
> action=CREATE
> &name=core-tex69bbum21ctk1kq6lmkir-index3
> &schema=/etc/opt/dcx/solr/conf/schema.xml
> &instanceDir=/etc/opt/dcx/solr/
> &config=/etc/opt/dcx/solr/conf/solrconfig.xml
> &dataDir=/var/opt/dcx/solr/core-tex69bbum21ctk1kq6lmkir-index3
>
> in Solr 4.1, solr.xml would have the following entry:
>
>     <core schema="/etc/opt/dcx/solr/conf/schema.xml" loadOnStartup="true" instanceDir="/etc/opt/dcx/solr/" transient="false" name="core-tex69bbum21ctk1kq6lmkir-index3" config="/etc/opt/dcx/solr/conf/solrconfig.xml" dataDir="/var/opt/dcx/solr/core-tex69bbum21ctk1kq6lmkir-index3/" collection="core-tex69bbum21ctk1kq6lmkir-index3"/>
>
> while in Solr 4.3 schema, config and dataDir will be missing:
>
>     <core loadOnStartup="true" instanceDir="/etc/opt/dcx/solr/" transient="false" name="core-tex69bbum21ctk1kq6lmkir-index3" collection="core-tex69bbum21ctk1kq6lmkir-index3"/>
>
> The new core would use the settings specified during CREATE, but after a Solr restart they are lost (fall back to some defaults), as they are not persisted in solr.xml.
>
> Is this a bug or am I doing something wrong here?
>
> André
Reply | Threaded
Open this post in threaded view
|

AW: Core admin action "CREATE" fails to persist some settings in solr.xml with Solr 4.3

André Widhani
I created SOLR-4862 ... I found no way to assign the ticket to somebody though (I guess it is is under "Workflow", but the button is greyed out).

Thanks,
André

Reply | Threaded
Open this post in threaded view
|

Re: Core admin action "CREATE" fails to persist some settings in solr.xml with Solr 4.3

Erick Erickson
Hmmm, that's the second time somebody's had that problem. It's
assigned to me now anyway, thanks for creating it!

Erick

On Mon, May 27, 2013 at 10:11 AM, André Widhani
<[hidden email]> wrote:
> I created SOLR-4862 ... I found no way to assign the ticket to somebody though (I guess it is is under "Workflow", but the button is greyed out).
>
> Thanks,
> André
>