lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7423) Non thread safe use of WeakHashMap can hang in get method.
Date Sun, 19 Apr 2015 18:45:58 GMT

    [ https://issues.apache.org/jira/browse/SOLR-7423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502052#comment-14502052
] 

Dawid Weiss commented on SOLR-7423:
-----------------------------------

Guava's MapMaker can provide one for you as well (I think).

> Non thread safe use of WeakHashMap can hang in get method.
> ----------------------------------------------------------
>
>                 Key: SOLR-7423
>                 URL: https://issues.apache.org/jira/browse/SOLR-7423
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Mark Miller
>
> You can see this with some googling and I just saw it happen in TestSolrConfigHandler.
A thread was stuck in HttpCacheHeaderUtil in the get for the WeakHashMap.
> Apache commons-beanutils has a WeakFastHashMap that is supposed to be thread safe and
read efficient I think.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message