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

Random Partitioner does not check if tokens are outside of its range

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None
    • None
    • Low

    Description

      Setting up a ring where the tokens are outside RP's token range leads to an unbalanced cluster. The partitioner still reports equally distributed ownership since it calculates ownership only with the distances of the tokens in relation to the maximum token.

      E.g. maximum token = 15
      token1 = 5
      token2 = 10
      token3 = 15
      token4 = 20

      ownership4 = (token4 - token3) / maximum_token = 5 / 15 = 1/3

      So token4 claims to own 33.33% of the ring but is not responsible for any primary replicas.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcelst Marcel Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: