lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-2135) ConcurrentLRUCache fails if getLatestAccessedItems(0) called
Date Thu, 30 Sep 2010 03:36:33 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Smiley updated SOLR-2135:
-------------------------------

    Attachment: SOLR-2135.patch

I modified tests to also check for this condition, and I fixed the bug too.

> ConcurrentLRUCache fails if getLatestAccessedItems(0) called
> ------------------------------------------------------------
>
>                 Key: SOLR-2135
>                 URL: https://issues.apache.org/jira/browse/SOLR-2135
>             Project: Solr
>          Issue Type: Bug
>            Reporter: David Smiley
>            Priority: Minor
>         Attachments: SOLR-2135.patch
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message