cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5499) Clean out TokenMetadata.getPrimaryRangeFor
Date Sat, 27 Apr 2013 04:58:16 GMT

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

Jonathan Ellis commented on CASSANDRA-5499:
-------------------------------------------

CASSANDRA-5518 does one piece.

Unfortunately AbstractReplicationStrategy is all over this, that's the main challenge.  Kind
of surprising it works.
                
> Clean out TokenMetadata.getPrimaryRangeFor
> ------------------------------------------
>
>                 Key: CASSANDRA-5499
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5499
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.2.5
>
>
> TokenMetadata.getPrimaryRangeFor is dangerous because it can return invalid results under
NetworkTopologyStrategy.  Callers should generally use StorageService.getPrimaryRangesForEndpoint
instead.  See CASSANDRA-5424.

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