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

Assertion error in CompressionParameters

    XMLWordPrintableJSON

Details

    • Normal

    Description

      Compacting a CF with a secondary index throws an assertion error while opening readers for the secondary index components. It is trying to update the CFMD to null because it could not find a CFMD which describes the secondary index. The CompressionParameters are shared between the data and the secondary indices.

      Was introduced in CASSANDRA-7978.

      java.lang.AssertionError: null
      	at org.apache.cassandra.io.compress.CompressionParameters.setLiveMetadata(CompressionParameters.java:108) ~[main/:na]
      	at org.apache.cassandra.io.sstable.SSTableReader.getCompressionMetadata(SSTableReader.java:1131) ~[main/:na]
      	at org.apache.cassandra.io.sstable.SSTableReader.openDataReader(SSTableReader.java:1878) ~[main/:na]
      	at org.apache.cassandra.io.sstable.SSTableScanner.<init>(SSTableScanner.java:67) ~[main/:na]
      	at org.apache.cassandra.io.sstable.SSTableReader.getScanner(SSTableReader.java:1664) ~[main/:na]
      	at org.apache.cassandra.io.sstable.SSTableReader.getScanner(SSTableReader.java:1676) ~[main/:na]
      	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:275) ~[main/:na]
      	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:324) ~[main/:na]
      	at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:151) ~[main/:na]
      	at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48) ~[main/:na]
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
      	at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:75) ~[main/:na]
      	at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~[main/:na]
      	at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:236) ~[main/:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_67]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_67]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_67]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
      	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
      

      Attachments

        1. 8027.txt
          6 kB
          T Jake Luciani
        2. 8027-2.0.txt
          6 kB
          T Jake Luciani

        Issue Links

          Activity

            People

              tjake T Jake Luciani
              carlyeks Carl Yeksigian
              T Jake Luciani
              Carl Yeksigian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: