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

NullPointerException during compaction on table with static columns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0.9, 3.8
    • Component/s: Local/Compaction
    • Labels:
      None
    • Environment:

      cqlsh 5.0.1
      Cassandra 3.0.8-SNAPSHOT (3.0.x dev - a5cbb0)

    • Severity:
      Normal

      Description

      After being affected by https://issues.apache.org/jira/browse/CASSANDRA-11988, we built a5cbb0.

      Compaction still fails with the following trace:

      WARN  [SharedPool-Worker-2] 2016-07-28 10:51:56,111 AbstractLocalAwareExecutorService.java:169 - Uncaught exception on thread Thread[SharedPool-Worker-2,5,main]: {}
      java.lang.RuntimeException: java.lang.NullPointerException
      	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2453) ~[main/:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_72]
      	at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164) ~[main/:na]
      	at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$LocalSessionFutureTask.run(AbstractLocalAwareExecutorService.java:136) [main/:na]
      	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [main/:na]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
      Caused by: java.lang.NullPointerException: null
      	at org.apache.cassandra.db.ReadCommand$1MetricRecording.applyToRow(ReadCommand.java:466) ~[main/:na]
      	at org.apache.cassandra.db.ReadCommand$1MetricRecording.applyToStatic(ReadCommand.java:460) ~[main/:na]
      	at org.apache.cassandra.db.transform.BaseRows.add(BaseRows.java:105) ~[main/:na]
      	at org.apache.cassandra.db.transform.UnfilteredRows.add(UnfilteredRows.java:41) ~[main/:na]
      	at org.apache.cassandra.db.transform.Transformation.add(Transformation.java:156) ~[main/:na]
      	at org.apache.cassandra.db.transform.Transformation.apply(Transformation.java:122) ~[main/:na]
      	at org.apache.cassandra.db.ReadCommand$1MetricRecording.applyToPartition(ReadCommand.java:454) ~[main/:na]
      	at org.apache.cassandra.db.ReadCommand$1MetricRecording.applyToPartition(ReadCommand.java:438) ~[main/:na]
      	at org.apache.cassandra.db.transform.BasePartitions.hasNext(BasePartitions.java:96) ~[main/:na]
      	at org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$Serializer.serialize(UnfilteredPartitionIterators.java:295) ~[main/:na]
      	at org.apache.cassandra.db.ReadResponse$LocalDataResponse.build(ReadResponse.java:145) ~[main/:na]
      	at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:138) ~[main/:na]
      	at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:134) ~[main/:na]
      	at org.apache.cassandra.db.ReadResponse.createDataResponse(ReadResponse.java:76) ~[main/:na]
      	at org.apache.cassandra.db.ReadCommand.createResponse(ReadCommand.java:320) ~[main/:na]
      	at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1796) ~[main/:na]
      	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2449) ~[main/:na]
      	... 5 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slebresne Sylvain Lebresne
                Reporter:
                eprothro Evan Prothro
                Authors:
                Sylvain Lebresne
                Reviewers:
                Carl Yeksigian
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: