DataStax Help Center

Compaction throws error "java.lang.AssertionError: originally calculated column size of X but now it is Y"

Summary

Compaction threads return an assertion error in earlier versions of Apache Cassandra.

Symptoms

The following type of errors may be seen in the Cassandra system.log file. Indicating some compaction tasks have failed.

2015-10-13 05:25:01,937 ERROR org.apache.cassandra.service.CassandraDaemon: [CompactionExecutor:27] CassandraDaemon.java (line 191) Exception in thread Thread[CompactionExecutor:27,1,main]
java.lang.AssertionError: originally calculated column size of 38274242 but now it is 38274260
at org.apache.cassandra.db.compaction.LazilyCompactedRow.write(LazilyCompactedRow.java:135)
at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:160)
at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:162)
at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:58)
at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)
at org.apache.cassandra.db.compaction.CompactionManager$7.runMayThrow(CompactionManager.java:442)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

 

Cause

This is a known issue with Cassandra releases before 1.2.19, 2.0.11 and 2.1.0.The problem was introduced in CASSANDRA-5677 enhancement for handling tombstones and has been fixed in CASSANDRA-7808. 

https://issues.apache.org/jira/browse/CASSANDRA-5677

https://issues.apache.org/jira/browse/CASSANDRA-7808

Solution

Upgrading to the latest DSE release on your current branch.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk