cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Capriolo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-4971) Token Generator needs to be partitioner aware
Date Sat, 17 Nov 2012 18:22:11 GMT
Edward Capriolo created CASSANDRA-4971:
------------------------------------------

             Summary: Token Generator needs to be partitioner aware
                 Key: CASSANDRA-4971
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4971
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.2.0 beta 2
            Reporter: Edward Capriolo
            Assignee: Edward Capriolo
            Priority: Minor


I do not agree with the decision to change the default partition from RP to murmur. Also whatever
micro-benchmarking demonstrating performance gains is completely outweighed by disk latency
anyway.

Assuming we are not going to change the default back there is another issue.
Historically, there are many blogs and reference material shows how to make tokens for RandomPartitioner.
Indeed the relatively new TokenGenerator is 'unaware' of this change, as it is giving the
user tokens for the Random Partitioner. 
 
{noformat}
[edward@tablitha 2]$ vi /home/edward/.ccm/repository/1.2.0-beta2/tools/bin/token-generator

[edward@tablitha 2]$ python /home/edward/.ccm/repository/1.2.0-beta2/tools/bin/token-generator

Token Generator Interactive Mode
--------------------------------

 How many datacenters will participate in this Cassandra cluster? 1
 How many nodes are in datacenter #1? 3

DC #1:
  Node #1:                                        0
  Node #2:   56713727820156410577229101238628035242
  Node #3:  113427455640312821154458202477256070484
{noformat}

This will lead to confusion amount new users and imbalanced rings. We should enhance the token-generator
so it will require input from use on which partitioner they are using so it can do the appropriate
math and give users the correct information.

--
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

Mime
View raw message