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

2i index indexing the cql3 row marker throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.10, 2.1.0
    • None
    • None
    • Low

    Description

      If you have a secondary index implementation that 'indexes()' the cql3 row marker you get a NPE in SecondaryIndexManager/deleteFromIndexes() as the call to getColumnDefinitionFromColumnName() returns null which is not checked for.

      This has been detected in the context of inserting PK only rows, where the row marker is expected to be present. When 'indexes()' returned 'false', the row would mistakenly get deleted as the row marker didn't go through.

      If 'indexes()' returns 'true' the row marker goes through but you get a NPE.

      Attachments

        1. cassandra-2.0-7787.txt
          2 kB
          Berenguer Blasi

        Activity

          People

            bereng Berenguer Blasi
            bereng Berenguer Blasi
            Berenguer Blasi
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: