[ https://issues.apache.org/jira/browse/CASSANDRA-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536260#comment-13536260 ]
Sylvain Lebresne commented on CASSANDRA-5076: --------------------------------------------- For the last range, I think the {{ti.subtract(tim1)}} part should be changed to {{(BigIntegerToken)start).token.subtract(ti)}} as done in RandomPartitionner.describeOwnership. Cause at the end of the loop, {{ti == tim1}}. But +1 with that fixed. > Murmur3Partitioner#describeOwnership calculates ownership% wrong > ---------------------------------------------------------------- > > Key: CASSANDRA-5076 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5076 > Project: Cassandra > Issue Type: Bug > Affects Versions: 1.2.0 rc1 > Reporter: Yuki Morishita > Assignee: Yuki Morishita > Priority: Minor > Fix For: 1.2.0 rc2 > > Attachments: 5076.txt > > > When I issued 'nodetool status' on Murmur3-partitioned cluster I got the > following output: > {code} > $ bin/nodetool -p 7100 status > > > > (git)-[5065]-[~/Developments/workspace/cassandra] > Datacenter: datacenter1 > ======================= > Status=Up/Down > |/ State=Normal/Leaving/Joining/Moving > -- Address Load Owns Host ID > Token Rack > UN 127.0.0.1 24.78 KB 66.7% ace7e54c-9fe1-4b23-83b0-949772b24c30 > -9223372036854775808 rack1 > UN 127.0.0.2 29.22 KB 66.7% 67146442-dbfd-449c-82e1-26729b8ac89c > -3074457345618258603 rack1 > UN 127.0.0.3 6.19 KB 66.7% 3fab9f18-daf3-4452-8b9c-204ea0ee2e15 > 3074457345618258602 rack1 > {code} > Notice that 'Owns' percentages add up to 200%. > I think the problem is that Murmur3Partitioner#describeOwnership currently > calculate ownership% based on [0, Long.MAX_VALUE] range, but we have to > consider about negative tokens. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira