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

in a cluster, get_range_slice() does not return all the keys it should

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.5
    • None
    • None
    • Debian 5 lenny on EC2, Gentoo linux, Windows XP

    • Normal

    Description

      get_range_slice() does not return the same set of keys as get_key_range() in 0.5.0 final.

      I posted a program to reproduce the behavior:

      http://www.mail-archive.com/cassandra-dev@incubator.apache.org/msg01474.html

      Apparently, you must have more than one node to get the behavior. Also, it may depend on the locations of the nodes on the ring.. I.e., if you don't generate enough keys randomly, then by chance they could all fall on the same host and you might not see the behavior, although I was able to get it to happen using only 2 nodes and 10 keys.

      Here are the other emails describing the issue:

      http://www.mail-archive.com/cassandra-user@incubator.apache.org/msg02423.html

      Attachments

        1. 781.txt
          53 kB
          Jonathan Ellis
        2. 781-backport.txt
          81 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            bjc bjc
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: