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

Deletion info is dropped on updated rows when notifying secondary index

    XMLWordPrintableJSON

Details

    Description

      In SecondaryIndexManager.onUpdated(), we fail to copy the DeletionInfo from the existing and new rows before notifying the index of the update. This leads the index to believe a new, live row has been inserted instead of a single-row deletion. It looks like this has been a problem since 3.0.0-beta1.

      I've attached a simple patch that fixes the issue. I'm working on a full patch with tests, etc.

      Attachments

        1. index-deletion.patch
          2 kB
          Tom Hobbs

        Activity

          People

            thobbs Tom Hobbs
            thobbs Tom Hobbs
            Tom Hobbs
            Sam Tunnicliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: