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

Assertion error while running compaction

    XMLWordPrintableJSON

Details

    • Normal

    Description

      While running compaction I run into an error sometimes :

      nodetool compact
      error: null
      -- StackTrace --
      java.lang.AssertionError
              at org.apache.cassandra.io.compress.CompressionMetadata$Chunk.<init>(CompressionMetadata.java:463)
              at org.apache.cassandra.io.compress.CompressionMetadata.chunkFor(CompressionMetadata.java:228)
              at org.apache.cassandra.io.util.CompressedSegmentedFile.createMappedSegments(CompressedSegmentedFile.java:80)
              at org.apache.cassandra.io.util.CompressedPoolingSegmentedFile.<init>(CompressedPoolingSegmentedFile.java:38)
              at org.apache.cassandra.io.util.CompressedPoolingSegmentedFile$Builder.complete(CompressedPoolingSegmentedFile.java:101)
              at org.apache.cassandra.io.util.SegmentedFile$Builder.complete(SegmentedFile.java:198)
              at org.apache.cassandra.io.sstable.format.big.BigTableWriter.openEarly(BigTableWriter.java:315)
              at org.apache.cassandra.io.sstable.SSTableRewriter.maybeReopenEarly(SSTableRewriter.java:171)
              at org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:116)
              at org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.append(DefaultCompactionWriter.java:64)
              at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:184)
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
              at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:74)
              at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)
              at org.apache.cassandra.db.compaction.CompactionManager$8.runMayThrow(CompactionManager.java:599)
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

      Why is that happening?
      Is there anyway to provide more details (e.g. which SSTable cannot be compacted)?

      We are using Cassandra 2.2.7

      Attachments

        Issue Links

          Activity

            People

              jay.zhuang Jay Zhuang
              jbleduigou Jean-Baptiste Le Duigou
              Jay Zhuang
              Marcus Eriksson
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: