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

ASF subversion and git services commented on SOLR-11898:
--------------------------------------------------------

Commit b5bf3b9c3844a739ef5b2f6317480b37dd0fe47b in lucene-solr's branch 
refs/heads/master from Erick Erickson
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=b5bf3b9 ]

SOLR-11898: ConcurrentModificationException when calling 
org.apache.solr.core.SolrInfoBean.getMetricsSnapshot


> ConcurrentModificationException when calling 
> org.apache.solr.core.SolrInfoBean.getMetricsSnapshot
> -------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11898
>                 URL: https://issues.apache.org/jira/browse/SOLR-11898
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>    Affects Versions: 7.1
>            Reporter: Jeff Miller
>            Assignee: Erick Erickson
>            Priority: Major
>              Labels: newbie
>         Attachments: SOLR-11898.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> SOLR-11255 Updated to use  ConcurrentHashMap.newKeySet(); for all metricNames 
> implementation but missed a few classes.
> I see this exception happening once in a while:
> Cause0: java.util.ConcurrentModificationException Cause0-StackTrace: at 
> java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1558) at 
> java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) 
> at 
> org.apache.solr.util.stats.MetricUtils.convertMetrics(MetricUtils.java:248) 
> at 
> org.apache.solr.util.stats.MetricUtils.convertMetrics(MetricUtils.java:226) 
> at org.apache.solr.core.SolrInfoBean.getMetricsSnapshot(SolrInfoBean.java:62)
>  
> Three classes weren't updated from using a HashSet for metricNames: 
> FastLRUCache, LFUCache and LRUCache



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to