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

2i index indexing the cql3 row marker throws NPE

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment