Marcus Eriksson created CASSANDRA-19571:
-------------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]