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

Repeated slices on RowSearchers are incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0 beta 1
    • None
    • None

    Description

      In AbstractThreadUnsafePartition, repeated slice() calls on a RowSearcher can produce incorrect results. This is caused by only performing a binary search over a sublist (based on nextIdx), but not taking nextIdx into account when using the search result index.

      I made a quick fix in this commit on one of my branches, but the full fix also needs to cover ReverseRowSearcher and include a test to reproduce the issue.

      Attachments

        Activity

          People

            thobbs Tom Hobbs
            thobbs Tom Hobbs
            Tom Hobbs
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: