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

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

    Details

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

      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

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

              Dates

              • Created:
                Updated:
                Resolved: