You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sam Overton (JIRA)" <ji...@apache.org> on 2012/07/09 15:10:35 UTC

[jira] [Commented] (CASSANDRA-4429) nodetool ring throws java.lang.AssertionError in TokenMetadata.getTopology

    [ https://issues.apache.org/jira/browse/CASSANDRA-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409429#comment-13409429 ] 

Sam Overton commented on CASSANDRA-4429:
----------------------------------------

Another minor issue with CASSANDRA-3047 is that the IPs are printed using InetAddress.toString() which results in output like this:

{noformat}
$ bin/nodetool -h localhost ring
Note: Ownership information does not include topology; for complete information, specify a keyspace

Datacenter: dc1
==========
Address         Rack        Status State   Load            Owns                Token                                       
                                                                               127605887595351923798765477786913079296     
miles/10.2.129.41rack1       Up     Normal  22.57 KB        25.00%              0                                           
/10.2.129.51    rack2       Up     Normal  4.63 KB         25.00%              127605887595351923798765477786913079296     

Datacenter: dc2
==========
Address         Rack        Status State   Load            Owns                Token                                       
                                                                               85070591730234615865843651857942052864      
/10.2.129.15    rack1       Up     Normal  13.54 KB        25.00%              42535295865117307932921825928971026432      
/10.2.129.16    rack2       Up     Normal  9.06 KB         25.00%              85070591730234615865843651857942052864      
{noformat}

It should be using InetAddress.getHostAddress() instead.
                
> nodetool ring throws java.lang.AssertionError in TokenMetadata.getTopology
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4429
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4429
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.2
>            Reporter: Sam Overton
>
> {noformat}
> $ bin/nodetool -h localhost ring
> Exception in thread "main" java.lang.AssertionError
>         at org.apache.cassandra.locator.TokenMetadata.getTopology(TokenMetadata.java:851)
>         at org.apache.cassandra.service.StorageService.effectiveOwnership(StorageService.java:2781)
>         at org.apache.cassandra.service.StorageService.effectiveOwnership(StorageService.java:70)
> {noformat}
> TokenMetadata.getTopology() can only be called on a clone of TokenMetadata, not the StorageService instance.

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