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

Repeated slices on RowSearchers are incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0 beta 1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              thobbs Tom Hobbs
              Reporter:
              thobbs Tom Hobbs
              Authors:
              Tom Hobbs
              Reviewers:
              Stefania Alborghetti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: