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

implementations of IPartitioner.describeOwnership() are not DC aware

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.3
    • Legacy/Tools
    • None

    Description

      see http://www.mail-archive.com/user@cassandra.apache.org/msg16375.html

      When a cluster the multiple rings approach to tokens the output from nodetool ring is incorrect.

      When it uses the interleaved token approach (e.g. dc1, dc2, dc1, dc2) it will be correct.

      It's a bit hacky but could we special case (RP) tokens that are off by 1 and calculate the ownership per dc ? I guess another approach would be to add some parameters so the partitioner can be told about the token assignment strategy.

      Attachments

        1. 3047.patch
          30 kB
          David Alves
        2. 3047.patch
          30 kB
          David Alves
        3. CASSANDRA-3047.patch
          31 kB
          David Alves
        4. CASSANDRA-3047.patch
          31 kB
          David Alves
        5. CASSANDRA-3047.patch
          31 kB
          David Alves
        6. CASSANDRA-3047.patch
          31 kB
          David Alves

        Activity

          People

            dr-alves David Alves
            amorton Aaron Morton
            David Alves
            Jonathan Ellis
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: