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

coreRootDirectory requires trailing slash, or SolrCloud cores are created in wrong location

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.9
    • 4.10, 6.0
    • None
    • x86_64 Linux
      x86_64 Sun Java 1.7.0_51

    Description

      If the coreRootDirectory setting does not end with a filesystem path separator, cores are not created in the correct location.

      e.g.
      coreRootDirectory=/usr/local/solr/cores

      For a collection xyz, API creates '/usr/local/solr/coresxyz_shardN_replicaN' config directory instead of '/usr/local/solr/cores/xyz_shardN_replicaN'

      Adding a trailing slash to coreRootDirectory is a viable workaround:

      coreRootDirectory=/usr/local/solr/cores/

      Attachments

        1. SOLR-6338.patch
          3 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            vkhatri Virender Khatri
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: