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

Secondary indexes can return stale data for deleted rows in 2.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Feature/2i Index
    • None
    • Normal

    Description

      In 2.x when the secondary index detect that a row has been deleted it removes it from the index. This approach can result in stale data being returned if one of the nodes has not yet received the deletion.
      The problem come from this line|https://github.com/apache/cassandra/blob/cassandra-2.1/src/java/org/apache/cassandra/db/index/composites/CompositesSearcher.java#L284.

      To avoid that problem we should remove the rows from the indexes only once they has been garbage collected.

      Attachments

        Issue Links

          Activity

            People

              adelapena Andres de la Peña
              blerer Benjamin Lerer
              Andres de la Peña
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: