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

leveled compaction does less work in L0 than intended

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.6
    • None
    • Low

    Description

      We have this code in the candidate loop:

      .               if (SSTable.getTotalBytes(candidates) > maxSSTableSizeInBytes)
                      {
                          // add sstables from L1 that overlap candidates
                          candidates.addAll(overlapping(candidates, generations[1]));
                          break;
                      }
      

      thus, as soon as we have enough to compact to make one L1 sstable's worth of data, we stop collecting candidates.

      Attachments

        1. 4778.txt
          2 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            jbellis Jonathan Ellis
            Jonathan Ellis
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: