Solr
  1. Solr
  2. SOLR-1043

Issue while persisting sharedLib attribute in multicore solr.xml

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      I executed a core admin command to dynamically create a new core in Solr with the persist flag set to true as mentioned here: http://wiki.apache.org/solr/CoreAdmin#head-7ca1b98a9df8b8ca0dcfbfc49940ed5ac98c4a08.

      The core properties like name and instanceDir were persisted properly in the solr.xml. However, the relative path specified in the sharedLib attribute of the top level "solr" element got converted by its absolute path. This caused errors in loading the classes in the sharedLib when the server is subsequently restarted. Manually changing the sharedLib back to its relative path fixes this issue.

        Issue Links

          Activity

          Hide
          Grant Ingersoll added a comment -

          Bulk close Solr 1.4 issues

          Show
          Grant Ingersoll added a comment - Bulk close Solr 1.4 issues
          Hide
          Hoss Man added a comment -

          Yeah, i wasn't sure what that line was doing in there either ... i removed it as part of SOLR-1072

          Show
          Hoss Man added a comment - Yeah, i wasn't sure what that line was doing in there either ... i removed it as part of SOLR-1072
          Hide
          karthik c added a comment -

          Looks like the libDir variable contains the value of the sharedLib attribute. However, this variable is getting reset to the full path of the sharedLib folder. The only place this variable is currently used is write the sharedLib attribute back into the solr.xml file.

          I have removed the line that resets this variable so that the value of sharedLib is retained as is.

          Show
          karthik c added a comment - Looks like the libDir variable contains the value of the sharedLib attribute. However, this variable is getting reset to the full path of the sharedLib folder. The only place this variable is currently used is write the sharedLib attribute back into the solr.xml file. I have removed the line that resets this variable so that the value of sharedLib is retained as is.

            People

            • Assignee:
              Hoss Man
              Reporter:
              karthik c
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development