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

Transient cores should not be unloaded/evicted while it's being used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None

    Description

      When using "transient cores" (transient=true on the core and configure transientCacheSize in solr.xml), Solr will evict/unload a core that appears to be getting little use when there is pressure on this cache. However, this mechanism doesn't truly check that the core isn't being used when making this decision. It could happen that a core is undergoing a long running operation (huge indexing batch?) but otherwise nothing else, and assuming some cache pressure on many others cores during this time, Solr will then "evict" this core. Solr will then consider this core unloaded even though it exists in memory and is open for this long-running operation for some time. If by bad luck a request comes in to use this core, Solr will attempt to load a new SolrCore for it which will fail due to the write lock file. At this point, the core is unusable until the node is restarted.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 50m
                  3h 50m