You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Marcus Eriksson (Jira)" <ji...@apache.org> on 2024/04/18 16:25:00 UTC
[jira] [Commented] (CASSANDRA-19571) Avoid ConcurrentModificationException when removing metrics from CassandraMetricsRegistry
[ https://issues.apache.org/jira/browse/CASSANDRA-19571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17838722#comment-17838722 ]
Marcus Eriksson commented on CASSANDRA-19571:
---------------------------------------------
cc [~mmuzaf]
> Avoid ConcurrentModificationException when removing metrics from CassandraMetricsRegistry
> -----------------------------------------------------------------------------------------
>
> Key: CASSANDRA-19571
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19571
> Project: Cassandra
> Issue Type: Bug
> Reporter: Marcus Eriksson
> Priority: Normal
>
> Multiple threads can modify the lists in {{CassandraMetricsRegistry}} {{ALIASES}} map values. We have seen this CME when removing metrics, but could possibly affect other paths using those lists
> Adding a small delay (10ms) when map:ing to {{getMetricName}} in {{CassandraMetricsRegistry.remove(name)}} makes this reproduce when running {{TransientRangeMovementTest.testLeave}}
> Caused by CASSANDRA-14572
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org