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

Manage to close all ResourceLoaders when cores are unloaded/reloaded

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: multicore
    • Labels:
      None

      Description

      Followup of SOLR-5009 and SOLR-4948: I fixed almost all places where Solr creates SolrResourceLoaders lazily. Solr should only create a SolrResourceLoader when the CoreContainer starts up and when a new Core is created (as a child SolrResourceLoader). There are already issues open to fix the hierarchy, but this issue is about corrcetly closing the SolrResourceLoader, as this is mandatory for correct class unloading and freeing up system resources, including closing JAR files (to be able to delete them on windows).

      SolrCore currently does not close its own SolrResourceLoader and the logic for reopening is un-understandable to me. In addition the SolrResourceLoader is shared by the config and the core and sometimes also the reopened core. I have no idea when it can be closed safely.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                uschindler Uwe Schindler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: