Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4862

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3
    • Fix Version/s: 4.4, 6.0
    • Component/s: multicore
    • Labels:
      None

      Description

      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. I should add that solr.xml has persistent="true" in the root element.

      http://lucene.472066.n3.nabble.com/Core-admin-action-quot-CREATE-quot-fails-to-persist-some-settings-in-solr-xml-with-Solr-4-3-td4065786.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                awidhani André Widhani
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: