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

NullPointerException causing query timeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.2
    • None
    • None
    • CQLSH 4.0.0
      Cassandra 2.0.0
      Oracle Java 1.7.0_40
      Ubuntu 12.04.3 x64

    • Normal

    Description

      A common SELECT query could not be completed failing with.

      Request did not complete within rpc_timeout.
      

      output.log showed this:

      ERROR 15:38:04,036 Exception in thread Thread[ReadStage:170,5,main]
      java.lang.RuntimeException: java.lang.NullPointerException
              at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1867)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.NullPointerException
              at org.apache.cassandra.db.index.composites.CompositesIndexOnRegular.isStale(CompositesIndexOnRegular.java:97)
              at org.apache.cassandra.db.index.composites.CompositesSearcher$1.computeNext(CompositesSearcher.java:247)
              at org.apache.cassandra.db.index.composites.CompositesSearcher$1.computeNext(CompositesSearcher.java:102)
              at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
              at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
              at org.apache.cassandra.db.ColumnFamilyStore.filter(ColumnFamilyStore.java:1651)
              at org.apache.cassandra.db.index.composites.CompositesSearcher.search(CompositesSearcher.java:50)
              at org.apache.cassandra.db.index.SecondaryIndexManager.search(SecondaryIndexManager.java:525)
              at org.apache.cassandra.db.ColumnFamilyStore.search(ColumnFamilyStore.java:1639)
              at org.apache.cassandra.db.RangeSliceCommand.executeLocally(RangeSliceCommand.java:135)
              at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1358)
              at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1863)
      

      Attachments

        1. 6098.txt
          6 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            lexlythius Lex Lythius
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: