Solr
  1. Solr
  2. SOLR-4982

Creating a core while referencing system properties looks like it loses files.

    Details

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

      Description

      If you use the core admin handler to create core and reference system properties and index files without restarting Solr, your files are indexed to the wrong place.

      Say for instance I define a sys prop EOE=/Users/Erick/tmp and create a core with this request
      localhost:8983/solr/admin/cores?action=CREATE&name=coreZ&instanceDir=coreZ&dataDir=%24%7BEOE%7D

      where %24%7BEOE%7D is really $

      {EOE} after URL escaping. What gets preserved in solr.xml is correct, dataDir is set to ${EOE}

      . And if I restart Solr, then index documents, they wind up in /Users/Erick/tmp. This is as it should be.

      HOWEVER, if rather than immediately restart Solr I index some documents to CoreZ, they go in <solr_home>/CoreZ/$

      {EOE}. The literal path is ${EOE}

      , dollar sign, curly braces and all.

      How important is this to fix for 4.4?

      1. SOLR-4982.patch
        23 kB
        Erick Erickson
      2. SOLR-4982.patch
        23 kB
        Erick Erickson
      3. SOLR-4982.patch
        20 kB
        Erick Erickson
      4. SOLR-4982.patch
        8 kB
        Erick Erickson
      5. SOLR-4982-fixtest.patch
        1 kB
        Erick Erickson

        Issue Links

          Activity

          Erick Erickson created issue -
          Erick Erickson made changes -
          Field Original Value New Value
          Attachment SOLR-4982.patch [ 12590897 ]
          Erick Erickson made changes -
          Attachment SOLR-4982.patch [ 12590941 ]
          Erick Erickson made changes -
          Attachment SOLR-4982.patch [ 12591019 ]
          Erick Erickson made changes -
          Link This issue depends upon SOLR-4948 [ SOLR-4948 ]
          Erick Erickson made changes -
          Priority Major [ 3 ] Blocker [ 1 ]
          Erick Erickson made changes -
          Attachment SOLR-4982.patch [ 12591084 ]
          Erick Erickson made changes -
          Attachment SOLR-4982-fixtest.patch [ 12591104 ]
          Erick Erickson made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0 [ 12321664 ]
          Fix Version/s 4.4 [ 12324324 ]
          Resolution Fixed [ 1 ]
          Steve Rowe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Erick Erickson
              Reporter:
              Erick Erickson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development