From dev-return-311477-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Feb 13 04:43:10 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 2A5D7180652 for ; Tue, 13 Feb 2018 04:43:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1A83F160C61; Tue, 13 Feb 2018 03:43:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 612C4160C3F for ; Tue, 13 Feb 2018 04:43:09 +0100 (CET) Received: (qmail 68331 invoked by uid 500); 13 Feb 2018 03:43:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 68320 invoked by uid 99); 13 Feb 2018 03:43:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2018 03:43:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C0003C0118 for ; Tue, 13 Feb 2018 03:43:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kR2XCBB3sdBC for ; Tue, 13 Feb 2018 03:43:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3C6115F522 for ; Tue, 13 Feb 2018 03:43:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7B7A3E0153 for ; Tue, 13 Feb 2018 03:43:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3892A21E84 for ; Tue, 13 Feb 2018 03:43:00 +0000 (UTC) Date: Tue, 13 Feb 2018 03:43:00 +0000 (UTC) From: "Erick Erickson (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SOLR-11898) ConcurrentModificationException when calling org.apache.solr.core.SolrInfoBean.getMetricsSnapshot MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-11898?page=3Dcom.atlassia= n.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.SolrInf= oBean.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)=20 > 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=C2=A0Updated to use=C2=A0 ConcurrentHashMap.newKeySet(); for a= ll metricNames implementation but missed a few classes. > I see this exception happening once in a while: > Cause0: java.util.ConcurrentModificationException Cause0-StackTrace: at j= ava.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.j= ava:62) > =C2=A0 > Three classes weren't updated from using a HashSet for metricNames: FastL= RUCache, 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