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

bin/solr create_core should work when coreRootDirectory is defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • SolrCLI
    • None

    Description

      If coreRootDirectory is defined in solr.xml, new core creation command fails (in standalone Solr).

      Looking at the code, it tries to populate solr_home, even if the core should go somewhere else. So, when the actual core creation command is called, it cannot find its pre-populated files and bails with

      ERROR: Error CREATEing SolrCore 'test3': Unable to create core [test3] Caused by: Can't find resource 'solrconfig.xml' in classpath or '/tmp/test3'

      Attachments

        Issue Links

          Activity

            People

              arafalov Alexandre Rafalovitch
              arafalov Alexandre Rafalovitch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m