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

RP.describeOwnership() does some bad math

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.1
    • None
    • None
    • Low

    Description

      If the input isn't sorted correctly for some reason, then describeOwnership() fails to calculate the ownership %ages correctly.

      Repro is 2 nodes with these tokens, you get these fractions:
      49000620740128447720217646403197156812 : 0.7615167
      770141183460469231731687303715884105727 : 4.2384834

      423% ownership is obviously broken.

      Attachments

        1. 2071.txt
          2 kB
          Jon Hermes

        Activity

          People

            jhermes Jon Hermes
            jhermes Jon Hermes
            Jon Hermes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified