[
https://issues.apache.org/jira/browse/CASSANDRA-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vijay updated CASSANDRA-3412:
-----------------------------
Attachment: 0001-CASSANDRA-3412-v2.patch
Ahaaa.... I was not handling the case where DC1 and DC2 wasnt valid DC's...
Attached patch has the fix.
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$ nt ring Keyspace1
Address DC Rack Status State Load
Effective-Owership Token
141784319550391026443072753096942836216
79.125.30.58 eu-west 1c Up Normal 57.55 KB 21.36%
7980510910520838461985007190626882496
107.21.183.168 us-east 1c Up Normal 79.97 KB 6.42%
18904575940052136859076367081351254013
46.137.134.6 eu-west 1c Up Normal 13.49 KB 22.22%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 79.78 KB 11.11%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 119.48 KB 33.33%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Down Normal 27.37 KB 5.56%
141784319550391026443072753096942836216
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$ nt ring
Warning: Output contains ownership information which does not include
replication factor.
Why? Non System keyspaces doesnt have the same the same topology
Warning: Use nodetool ring <keyspace> to specify a keyspace.
Address DC Rack Status State Load Owns
Token
141784319550391026443072753096942836216
79.125.30.58 eu-west 1c Up Normal 57.55 KB 21.36%
7980510910520838461985007190626882496
107.21.183.168 us-east 1c Up Normal 79.97 KB 6.42%
18904575940052136859076367081351254013
46.137.134.6 eu-west 1c Up Normal 13.49 KB 22.22%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 79.78 KB 11.11%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 119.48 KB 33.33%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Down Normal 27.37 KB 5.56%
141784319550391026443072753096942836216
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$ nt ring nts
Address DC Rack Status State Load
Effective-Owership Token
141784319550391026443072753096942836216
79.125.30.58 eu-west 1c Up Normal 57.55 KB 0.00%
7980510910520838461985007190626882496
107.21.183.168 us-east 1c Up Normal 79.97 KB 0.00%
18904575940052136859076367081351254013
46.137.134.6 eu-west 1c Up Normal 13.49 KB 0.00%
56713727820156410577229101239000783353
50.16.117.152 us-east 1c Up Normal 79.78 KB 0.00%
75618303760208547436305468319979289255
50.19.163.142 us-east 1c Up Normal 119.48 KB 0.00%
132332031580364958013534569558607324497
46.51.157.33 eu-west 1c Down Normal 27.37 KB 0.00%
141784319550391026443072753096942836216
[vijay_tcasstest@vijay_tcass-i-a6643ac3 ~]$
> make nodetool ring ownership smarter
> ------------------------------------
>
> Key: CASSANDRA-3412
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3412
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jackson Chung
> Assignee: Vijay
> Priority: Minor
> Attachments: 0001-CASSANDRA-3412-v2.patch, 0001-CASSANDRA-3412.patch
>
>
> just a thought.. the ownership info currently just look at the token and
> calculate the % between nodes. It would be nice if it could do more, such as
> discriminate nodes of each DC, replica set, etc.
> ticket is open for suggestion...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira