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

NPE from PrecompactedRow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.8.0 beta 2
    • None
    • None
    • Normal

    Description

      received a NPE from trunk (0.8) on PrecompactedRow:

      ERROR [CompactionExecutor:2] 2011-04-21 17:21:31,610 AbstractCassandraDaemon.java (line 112) Fatal exception in thread Thread[CompactionExecutor:2,1,main]
      java.lang.NullPointerException
      at org.apache.cassandra.io.PrecompactedRow.<init>(PrecompactedRow.java:86)
      at org.apache.cassandra.io.CompactionIterator.getCompactedRow(CompactionIterator.java:167)
      at org.apache.cassandra.io.CompactionIterator.getReduced(CompactionIterator.java:124)
      at org.apache.cassandra.io.CompactionIterator.getReduced(CompactionIterator.java:44)
      at org.apache.cassandra.utils.ReducingIterator.computeNext(ReducingIterator.java:74)
      at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140)
      at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135)
      at org.apache.commons.collections.iterators.FilterIterator.setNextObject(FilterIterator.java:183)
      at org.apache.commons.collections.iterators.FilterIterator.hasNext(FilterIterator.java:94)
      at org.apache.cassandra.db.CompactionManager.doCompaction(CompactionManager.java:553)
      at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:146)
      at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:112)
      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)

      size of data in /var/lib/cassandra is 11G on this, but there is also report that 1.7G also see the same.

      data was previously populated from 0.7.4 cassandra

      added debug logging, not sure how much this help (this is logged before the exception.)

      INFO [CompactionExecutor:2] 2011-04-21 17:21:31,588 CompactionManager.java (line 534) Compacting Major: [SSTableReader(path='/var/lib/cassandra/data/cfs/inode.path-f-10-Data.db'), SSTableReader(path='/var/lib/cassandra/data/cfs/inode.path-f-7-Data.db'), SSTableReader(path='/var/lib/cassandra/data/cfs/inode.path-f-6-Data.db'), SSTableReader(path='/var/lib/cassandra/data/cfs/inode.path-f-8-Data.db'), SSTableReader(path='/var/lib/cassandra/data/cfs/inode.path-f-9-Data.db')]
      DEBUG [CompactionExecutor:2] 2011-04-21 17:21:31,588 SSTableReader.java (line 132) index size for bloom filter calc for file : /var/lib/cassandra/data/cfs/inode.path-f-10-Data.db : 256
      DEBUG [CompactionExecutor:2] 2011-04-21 17:21:31,588 SSTableReader.java (line 132) index size for bloom filter calc for file : /var/lib/cassandra/data/cfs/inode.path-f-7-Data.db : 512
      DEBUG [CompactionExecutor:2] 2011-04-21 17:21:31,588 SSTableReader.java (line 132) index size for bloom filter calc for file : /var/lib/cassandra/data/cfs/inode.path-f-6-Data.db : 768
      DEBUG [CompactionExecutor:2] 2011-04-21 17:21:31,589 SSTableReader.java (line 132) index size for bloom filter calc for file : /var/lib/cassandra/data/cfs/inode.path-f-8-Data.db : 1024
      DEBUG [CompactionExecutor:2] 2011-04-21 17:21:31,589 SSTableReader.java (line 132) index size for bloom filter calc for file : /var/lib/cassandra/data/cfs/inode.path-f-9-Data.db : 1280
      INFO [CompactionExecutor:2] 2011-04-21 17:21:31,609 CompactionIterator.java (line 185) Major@1181554512(cfs, inode.path, 523/10895) now compacting at 16777 bytes/ms.

      Attachments

        1. 2528.txt
          6 kB
          Jonathan Ellis
        2. 2528.txt
          1.0 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            cywjackson Jackson Chung
            Jonathan Ellis
            Jackson Chung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: