cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patricio Echague (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2882) describe_ring should include datacenter/topology information
Date Tue, 25 Oct 2011 23:40:32 GMT

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

Patricio Echague commented on CASSANDRA-2882:
---------------------------------------------

In a cluster of 2 nodes (RF = 1), when invoking describe_ring I get (as expected) two TokenRange
entities where one of them has EndpointDetails empty and the other one (the seed) has actually
some info with DC = null.

Is this exptected ?

{code}

TokenRange(start_token:39635973474216269529792835485919948635, end_token:50000400412763488628260866807373889368,
endpoints:[127.0.0.2], rpc_endpoints:[127.0.0.2], endpoint_details:[])

TokenRange(start_token:50000400412763488628260866807373889368, end_token:39635973474216269529792835485919948635,
endpoints:[127.0.0.1], rpc_endpoints:[127.0.0.1], endpoint_details:[EndpointDetails(host:127.0.0.1,
port:9160, datacenter:null)])

{code}
                
> describe_ring should include datacenter/topology information
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-2882
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2882
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: API, Core
>            Reporter: Mark Guzman
>            Assignee: Mark Guzman
>            Priority: Minor
>              Labels: lhf
>             Fix For: 1.0.1
>
>         Attachments: 0001-CASSANDRA-2882-feedback-changes.patch, 0001-CASSANDRA-2882-patch-w-o-generated-files.patch,
0001-CASSANDRA-2882-rebased.patch, 0001-added-the-host-addr-to-the-EndpointDetail-class.-det.patch,
0001-adding-an-additional-parameter-to-the-TokenRange-res.patch, 0001-final-cleaned-up-2882-changes.patch
>
>
> describe_ring is great for getting a list of nodes in the cluster, but it doesn't provide
any information about the network topology which prevents it's use in a multi-dc setup. It
would be nice if we added another list to the TokenRange object containing the DC information.

> Optimally I could have ask any Cassandra node for this information and on the client-side
prefer local nodes but be able to fail to remote nodes without requiring another lookup.

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

        

Mime
View raw message