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

Replace basic LRU by Caffeine Cache for transient core cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.10
    • None
    • None

    Description

      Currently TransientSolrCoreCacheDefault uses a basic LinkedList LRU cache to store loaded transient cores. This can easily be replaced by the much more effective Caffeine Cache.

      For example, with the current simple LRU when new cores are added, the least recently accessed cores are evicted. So when a bunch of rarely used transient cores are opened for punctual access (and added temporarily to the cache) this causes the eviction of a bunch of regularly accessed cores. However this case is nicely handled by the Caffeine Cache which keeps the regularly accessed cores.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              broustant Bruno Roustant
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 2h
                  2h