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

Multicore admin/cores?action=CREATE

    Details

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

      Solaris x86, jdk 1.6, tomcat 2.0.16

      Description

      Using the information off the CoreAdmin Wiki, I initially set up Solr with one core with solr.xml looking like the following:

      <solr persistent="true" sharedLib="lib">
      <cores adminPath="/admin/cores" sharedSchema="false">
      <core name="core1" instanceDir="/opt/solrcores"
      dataDir="/data1/core1"
      config="solrconfig.xml"
      properties="conf/solrcore-core1.properties"
      schema="schema-core1.xml" />
      </cores>
      </solr>

      The application starts up fine and I can get to the http://<solrhost:port>/solrcores. I see the link for Admin core1 and everything is running fine. I then enter the URL:

      http://<solrhost:port>/solrcores/admin/cores?action=CREATE&name=core2&instanceDir=/opt/solrcores&config=solrconfig-core2.xml&schema=schema-core2.xml&dataDir=/data1/core2&properties=conf/solrcore-core2.properties

      to create my next core, core2. The new core is registered and does show in the base URL, http://<solrhost:port>/solrcores, which now list links for Admin core1 and Admin core2.

      When I looked in the solr.xml, I see the following:

      <solr persistent="true" sharedLib="lib">
      <cores adminPath="/admin/cores" sharedSchema="false">
      <core name="core1" instanceDir="/opt/solrcores" schema="schema-core1.xml" properties="conf/solrcore-core1.properties" dataDir="/data1/core1" />
      <core name="core2" instanceDir="/opt/solrcores" schema="schema-core2.xml" dataDir="/data1/core2" />
      </cores>
      </solr>

      Shouldn't all the parameters be added to the solr.xml core2 that were passed in from the URL? And why did the config="solrconfig.xml" get removed from the core1 definition?

        Issue Links

          Activity

          Hide
          thetaphi Uwe Schindler added a comment -

          Closed after release.

          Show
          thetaphi Uwe Schindler added a comment - Closed after release.
          Hide
          erickerickson Erick Erickson added a comment -

          Fixed in SOLR-4663

          Show
          erickerickson Erick Erickson added a comment - Fixed in SOLR-4663
          Hide
          wese Frank Wesemann added a comment -

          If solrconfig.xml specifies a dataDir the dataDir parameter to the CREATE action is ignored.
          This is due to the fact that in the SolrCore Construktor the configfile takes precedence over the CoreDescriptor.
          Shouldn't the CoreDescriptor take precedence?

          Show
          wese Frank Wesemann added a comment - If solrconfig.xml specifies a dataDir the dataDir parameter to the CREATE action is ignored. This is due to the fact that in the SolrCore Construktor the configfile takes precedence over the CoreDescriptor. Shouldn't the CoreDescriptor take precedence?

            People

            • Assignee:
              erickerickson Erick Erickson
              Reporter:
              swjunke Robbin Turner
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development