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

Unnecessary assertion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      We had over 70 thousand sstables and it's slow to bootstrap new node, even though the CPU utilization for main thread of Cassandra was nearly 100%. So we took a few stack traces and found that the main thread were busy running this line in Tracker.java:

      assert Iterables.all(removed, remove);
      

      Not exactly sure whether this line causes CPU utilization/bootstrapping issue, but this line is redundant because the Predict we pass in is Predicates.<SSTableReader>alwaysTrue(), which means the assertion always returns true. So I propose to remove that line.

      Attachments

        1. CASSANDRA-13106.patch
          1.0 kB
          Simon Zhou

        Activity

          People

            szhou Simon Zhou
            szhou Simon Zhou
            Simon Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: