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

NullPointerException in SharedPool-Worker

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal
    • Since Version:

      Description

      After an update from 3.0.8 to 3.0.9 we are getting the following exception on every node for the query:

      SELECT * FROM keyspace.table WHERE partition = 0 AND expiration_time < 1480519469368;
      

      on the following table:

      CREATE TABLE keyspace.table (
          partition int,
          expiration_time timestamp,
          phone text,
          PRIMARY KEY (partition, expiration_time, phone)
      ) WITH CLUSTERING ORDER BY (expiration_time ASC, phone ASC)
          AND bloom_filter_fp_chance = 0.01
          AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'}
          AND comment = ''
          AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
          AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
          AND crc_check_chance = 1.0
          AND dclocal_read_repair_chance = 0.0
          AND default_time_to_live = 0
          AND gc_grace_seconds = 864000
          AND max_index_interval = 2048
          AND memtable_flush_period_in_ms = 3600000
          AND min_index_interval = 128
          AND read_repair_chance = 0.0
          AND speculative_retry = '99PERCENTILE';
      
      WARN  [SharedPool-Worker-1] 2016-11-30 14:48:00,852 AbstractLocalAwareExecutorService.java:169 - Uncaught exception on thread Thread[SharedPool-Worker-1,5,main]: {}
      java.lang.RuntimeException: java.lang.NullPointerException
              at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2470) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_111]
              at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$LocalSessionFutureTask.run(AbstractLocalAwareExecutorService.java:136) [apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-3.0.9.jar:3.0.9]
              at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
      Caused by: java.lang.NullPointerException: null
              at org.apache.cassandra.db.Slices$ArrayBackedSlices$ComponentOfSlice.isEQ(Slices.java:748) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.Slices$ArrayBackedSlices.toCQLString(Slices.java:659) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.filter.ClusteringIndexSliceFilter.toCQLString(ClusteringIndexSliceFilter.java:150) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.SinglePartitionReadCommand.appendCQLWhereClause(SinglePartitionReadCommand.java:911) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.ReadCommand.toCQLString(ReadCommand.java:560) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.ReadCommand$1MetricRecording.onClose(ReadCommand.java:506) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.transform.BasePartitions.runOnClose(BasePartitions.java:70) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.db.transform.BaseIterator.close(BaseIterator.java:76) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:1797) ~[apache-cassandra-3.0.9.jar:3.0.9]
              at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2466) ~[apache-cassandra-3.0.9.jar:3.0.9]
              ... 5 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                limonad Mike
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: