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

ConcurrentLRUCache fails if getLatestAccessedItems(0) called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • None
    • None

    Description

      I'll add a patch which adds a test which demonstrates this.

      ERROR 13:26:39 [o.a.s.core.SolrCore] - java.util.NoSuchElementException
      at java.util.TreeMap.key(TreeMap.java:1206)
      at java.util.TreeMap.lastKey(TreeMap.java:274)
      at java.util.TreeSet.last(TreeSet.java:384)
      at org.apache.solr.common.util.ConcurrentLRUCache.getLatestAccessedItems(ConcurrentLRUCache.java:437)
      at org.apache.solr.search.FastLRUCache.warm(FastLRUCache.java:158)
      at org.apache.solr.search.SolrIndexSearcher.warm(SolrIndexSearcher.java:1490)
      at org.apache.solr.core.SolrCore$2.call(SolrCore.java:1127)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:637)

      Attachments

        1. SOLR-2135.patch
          2 kB
          David Smiley

        Activity

          People

            hossman Chris M. Hostetter
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: