Cassandra
  1. Cassandra
  2. CASSANDRA-5000

Null pointer exception in SecondaryIndexManager.getIndexKeyFor in Cassandra 1.1.x

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Linux (exact environment doesn't appear to be relevant; reproduced on RedHat and Centos)

      Description

      Cassandra 1.1.0 and following releases gets an NPE in SecondaryIndexManager writing a CF with multiple secondary keys. Problem did not occur in 1.0.x, and can be resolved by downgrading the Cassandra server. Stack trace is:

      ERROR [MutationStage:47] 2012-11-28 11:24:30,865 AbstractCassandraDaemon.java (line 134) Exception in thread Thread[MutationStage:47,5,main]
      java.lang.RuntimeException: java.lang.NullPointerException
      at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1254)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NullPointerException
      at org.apache.cassandra.db.index.SecondaryIndexManager.getIndexKeyFor(SecondaryIndexManager.java:299)
      at org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(SecondaryIndexManager.java:463)
      at org.apache.cassandra.db.Table.apply(Table.java:459)
      at org.apache.cassandra.db.Table.apply(Table.java:384)
      at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:294)
      at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:453)
      at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)

      Client stack trace is:

      me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
      at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:35)[hector-core-1.0-5.jar:]
      at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:264)[hector-core-1.0-5.jar:]
      at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecuteOperation(ExecutingKeyspace.java:97)[hector-core-1.0-5.jar:]
      at me.prettyprint.cassandra.model.MutatorImpl.execute(MutatorImpl.java:243)[hector-core-1.0-5.jar:]
      ... 3 more

      1. system.log
        963 kB
        David Tootill
      2. stdlog.txt
        59 kB
        David Tootill
      3. CassandraDefect5000-1.0-SNAPSHOT-1.tar.gz
        8.05 MB
        David Tootill
      4. CassandraDefect5000-1.0-SNAPSHOT-2.tar.gz
        5.97 MB
        David Tootill
      5. Cassandra Defect 5000 Reproduction and Background.docx
        21 kB
        David Tootill

        Activity

        David Tootill created issue -
        David Tootill made changes -
        Field Original Value New Value
        Attachment system.log [ 12555193 ]
        Attachment stdlog.txt [ 12555194 ]
        David Tootill made changes -
        Jonathan Ellis made changes -
        Assignee Yuki Morishita [ yukim ]
        Fix Version/s 1.1.8 [ 12323574 ]
        Affects Version/s 1.1.1 [ 12319857 ]
        Affects Version/s 1.1.2 [ 12321445 ]
        Affects Version/s 1.1.3 [ 12321881 ]
        Affects Version/s 1.1.4 [ 12322490 ]
        Affects Version/s 1.1.5 [ 12322941 ]
        Affects Version/s 1.1.6 [ 12323257 ]
        Priority Critical [ 2 ] Major [ 3 ]
        Reviewer jbellis
        Jonathan Ellis made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1.8 [ 12323574 ]
        Resolution Not A Problem [ 8 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12736125 ] patch-available, re-open possible [ 12753703 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12753703 ] reopen-resolved, no closed status, patch-avail, testing [ 12758885 ]

          People

          • Assignee:
            Yuki Morishita
            Reporter:
            David Tootill
            Reviewer:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development