[
https://issues.apache.org/jira/browse/SOLR-14576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17172059#comment-17172059
]
Noble Paul commented on SOLR-14576:
-----------------------------------
I've changed it to UUID as the key. Plan to commit this soon
> HttpCacheHeaderUti.etagCoreCache should not use a SolrCore as key
> -----------------------------------------------------------------
>
> Key: SOLR-14576
> URL: https://issues.apache.org/jira/browse/SOLR-14576
> Project: Solr
> Issue Type: Bug
> Reporter: Noble Paul
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> GC performance is affected when the key is a complex data structure. We can
> make it
> {code}
> private static WeakIdentityMap<String, EtagCacheVal> etagCoreCache =
> WeakIdentityMap.newConcurrentHashMap();
> {code}
> instead of
> {code}
> private static WeakIdentityMap<SolrCore, EtagCacheVal> etagCoreCache =
> WeakIdentityMap.newConcurrentHashMap();
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]