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

2i index indexing the cql3 row marker throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.0.10, 2.1.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      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

            • Assignee:
              Bereng Berenguer Blasi
              Reporter:
              Bereng Berenguer Blasi
              Authors:
              Berenguer Blasi
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: