lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-11898) ConcurrentModificationException when calling org.apache.solr.core.SolrInfoBean.getMetricsSnapshot
Date Tue, 13 Feb 2018 03:43:00 GMT

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

Erick Erickson resolved SOLR-11898.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 7.3

Thanks Jeff!

> 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
>             Fix For: 7.3
>
>         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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message