incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Stigbäck <fredrik.l.stigb...@sitevision.se>
Subject NullPointerException doing cleanup
Date Tue, 13 Sep 2011 10:53:19 GMT
Trying to do a nodetool cleanup but gets a NullPointerException.
I've done some debugging and found out that the property
org.apache.cassandra.db.compaction.PrecompactedRow.compactedCf is
initilaized to null since
ColumnFamilyStore.removeDeleted(ColumnFamily, int) returns null which I
interpret as the row is marked for delete and has no columns.
This will cause org.apache.cassandra.db.ColumnIndexer.serializeInternal  to
get a IIterableColumns == null.
Any ideas? Corrupted SStable or a bug or something else?
Running Cassandra 0.8.4 on a Windows 7 but have seen the same behaviour on
Linux.

09:09:50 ERROR [AbstractCassandraDaemon] [] Fatal exception in thread
Thread[CompactionExecutor:8,1,main]
java.lang.NullPointerException
        at
org.apache.cassandra.db.ColumnIndexer.serializeInternal(ColumnIndexer.java:60)
        at
org.apache.cassandra.db.ColumnIndexer.serialize(ColumnIndexer.java:50)
        at
org.apache.cassandra.db.compaction.PrecompactedRow.write(PrecompactedRow.java:110)
        at
org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:132)
        at
org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompaction(CompactionManager.java:866)
        at
org.apache.cassandra.db.compaction.CompactionManager.access$500(CompactionManager.java:65)
        at
org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:204)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

/Regards Fredrik

Mime
View raw message