Solr
  1. Solr
  2. SOLR-3592

After reloading a SolrCore, some IndexWriter 'settings' changes will not take effect. Instead, you must restart Solr.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3, 5.0
    • Component/s: None
    • Labels:
      None

      Description

      This is a known tradeoff that was made to more properly support our SolrCore model - there is a TODO: in the code in SolrCore#reload about it.

        Issue Links

          Activity

          Hide
          Jack Krupansky added a comment -

          If this was fixed in 4.3, then the wiki and refguide should note that:

          Refguide:

          https://cwiki.apache.org/confluence/display/solr/CoreAdminHandler+Parameters+and+Usage

          As of Solr 4.0, REALOAD performs "live" reloads of SolrCore, reusing some existing objects. Some configuration options, such as the DataDir location and IndexWriter related settings in solrconfig.xml can not be changed and made active with a simple RELOAD action.

          wiki:
          http://wiki.apache.org/solr/CoreAdmin#Important_Note_About_Some_Configuration_Changes

          Starting with Solr4.0, the RELOAD command is implemented in a way that results a "live" reloads of the SolrCore, reusing the existing various objects such as the SolrIndexWriter. As a result, some configuration options can not be changed and made active with a simple RELOAD...

          IndexWriter related settings in <indexConfig>
          <dataDir> location
          See SOLR-3592 for more background.

          I would also note that the wiki page is another candidate for full migration to the new refguide since the refguide is essentially a cut and paste of the wiki page.

          Show
          Jack Krupansky added a comment - If this was fixed in 4.3, then the wiki and refguide should note that: Refguide: https://cwiki.apache.org/confluence/display/solr/CoreAdminHandler+Parameters+and+Usage As of Solr 4.0, REALOAD performs "live" reloads of SolrCore, reusing some existing objects. Some configuration options, such as the DataDir location and IndexWriter related settings in solrconfig.xml can not be changed and made active with a simple RELOAD action. wiki: http://wiki.apache.org/solr/CoreAdmin#Important_Note_About_Some_Configuration_Changes Starting with Solr4.0, the RELOAD command is implemented in a way that results a "live" reloads of the SolrCore, reusing the existing various objects such as the SolrIndexWriter. As a result, some configuration options can not be changed and made active with a simple RELOAD... IndexWriter related settings in <indexConfig> <dataDir> location See SOLR-3592 for more background. I would also note that the wiki page is another candidate for full migration to the new refguide since the refguide is essentially a cut and paste of the wiki page.
          Hide
          Mark Miller added a comment -

          This was fixed.

          Show
          Mark Miller added a comment - This was fixed.
          Hide
          Hoss Man added a comment -

          I've added notes to the wiki...

          https://wiki.apache.org/solr/CoreAdmin#LiveReload
          https://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter
          https://wiki.apache.org/solr/SolrConfigXml#indexConfig_Section

          removing fixVersion=4.0 and leaving this open for the possibility that it might get fixed in the future.

          Show
          Hoss Man added a comment - I've added notes to the wiki... https://wiki.apache.org/solr/CoreAdmin#LiveReload https://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter https://wiki.apache.org/solr/SolrConfigXml#indexConfig_Section removing fixVersion=4.0 and leaving this open for the possibility that it might get fixed in the future.
          Hide
          Robert Muir added a comment -

          rmuir20120906-bulk-40-change

          Show
          Robert Muir added a comment - rmuir20120906-bulk-40-change
          Hide
          Hoss Man added a comment -

          Note SOLR-1781: this overall situation also applies to "dataDir"

          if you try to change the dataDir in solrconfig.xml and then reload a core you'll still have your existing dataDir because it's a "live" reload.

          Show
          Hoss Man added a comment - Note SOLR-1781 : this overall situation also applies to "dataDir" if you try to change the dataDir in solrconfig.xml and then reload a core you'll still have your existing dataDir because it's a "live" reload.
          Hide
          Hoss Man added a comment -

          bulk fixing the version info for 4.0-ALPHA and 4.0 all affected issues have "hoss20120711-bulk-40-change" in comment

          Show
          Hoss Man added a comment - bulk fixing the version info for 4.0-ALPHA and 4.0 all affected issues have "hoss20120711-bulk-40-change" in comment
          Hide
          Mark Miller added a comment -

          For 4 we should document this somewhere.

          Show
          Mark Miller added a comment - For 4 we should document this somewhere.

            People

            • Assignee:
              Mark Miller
              Reporter:
              Mark Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development