lucene-dev mailing list archives

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

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

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

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

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

(cherry picked from commit b5bf3b9)


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


Mime
View raw message