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

CoreAdmin - SWAP and RENAME with shared instanceDir and no dataDir - problems after Solr restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If your cores share an instanceDir but dataDir is not explicitly defined in solr.xml, apparently dataDir is not "./data" as it would be when instanceDir is not shared, it becomes (or includes) the name of the core as well. This results in problems problems with RENAME, and probably SWAP as well.

      The RENAME will work, with the dataDir still retaining the old name. When you restart Solr, however, the core will use the new name for the dataDir and create an empty index, ignoring the old one. Based on this behavior, I believe that if you did a SWAP, after reload the cores would no longer be swapped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                elyograg Shawn Heisey
                Reporter:
                elyograg Shawn Heisey
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: