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-525) use "pending ranges" abstraction in TokenMetadata
Date Thu, 05 Nov 2009 17:41:32 GMT

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

Jonathan Ellis commented on CASSANDRA-525:
------------------------------------------

Third try. :)

04
     onChange only ever sees one ApplicationState piece change at a time, so we perform a
kind of state machine here.
     We are concerned with two events: knowing the token associated with an enpoint, and knowing
its operation mode.
     Nodes can start in either bootstrap or normal mode, and from bootstrap mode can change
mode to normal.
     A node in bootstrap mode needs to have pendingranges set in TokenMetadata; a node in
normal mode
     should instead be part of the token ring.

03
    split out onJoin from onChange, so we can pass a single ApplicationState object to onChange
    to emphasize that it gets called once per AS
    rename ApplicationState.getState -> getValue


> use "pending ranges" abstraction in TokenMetadata
> -------------------------------------------------
>
>                 Key: CASSANDRA-525
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-525
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>             Fix For: 0.5
>
>         Attachments: 0001-CASSANDRA-525-cleanup.txt, 0002-make-sortedtokens-passably-efficient.txt,
0003-containing-isBootstrapping-and-BootstrapTokenAddress-i.txt, 0003-split-out-onJoin-from-onChange-so-we-can-pass-a-singl.txt,
0004-containing-isBootstrapping-and-BootstrapTokenAddress-i.txt, 0004-use-bootstrap_node-in-bootsrapping.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message