Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19571

Avoid ConcurrentModificationException when removing metrics from CassandraMetricsRegistry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.1
    • None
    • None
    • All
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              mmuzaf Maxim Muzafarov
              marcuse Marcus Eriksson
              Maxim Muzafarov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: