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

Infinite compaction of L0 SSTables in JBOD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Invalid
    • None
    • Local/Compaction
    • Cassandra 3.11.0 / Centos 6

    • Normal

    Description

      I recently upgraded from 2.2.6 to 3.11.0.

      I am seeing Cassandra loop infinitely compacting the same data over and over. Attaching logs.

      It is compacting two tables, one on /srv/disk10, the other on /srv/disk1. It does create new SSTables but immediately recompacts again. Note that I am not inserting anything at the moment, there is no flushing happening on this table (Memtable switch count has not changed).

      My theory is that it somehow thinks those should be compaction candidates. But they shouldn't be, they are on different disks and I ran nodetool relocatesstables as well as nodetool compact. So, it tries to compact them together, but the compaction results in the exact same 2 SSTables on the 2 disks, because the keys are split by data disk.

      This is pretty serious, because all our nodes right now are consuming CPU doing this for multiple tables, it seems.

      Attachments

        1. cassandra.yaml
          56 kB
          Dan Kinder
        2. cassandra-jstack-2017-10-12.txt
          455 kB
          Dan Kinder
        3. cassandra-jstack-2017-10-12-infinite-sstable-adding.txt
          233 kB
          Dan Kinder
        4. debug.log
          806 kB
          Dan Kinder
        5. debug.log.1.zip
          995 kB
          Dan Kinder
        6. debug.log.zip
          95 kB
          Dan Kinder
        7. debug.log-with-commit-d8f3f2780
          4.75 MB
          Dan Kinder
        8. jvm.options
          9 kB
          Dan Kinder

        Issue Links

          Activity

            People

              marcuse Marcus Eriksson
              dkinder Dan Kinder
              Marcus Eriksson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: