cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Evans (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4121) TokenMetadata supports multiple tokens per host
Date Tue, 03 Jul 2012 21:54:34 GMT


Eric Evans commented on CASSANDRA-4121:

bq. If we do go with these wrappers I'd prefer to keep it as thin as possible – no internal
synchronization, no copies on inverse(). (I think the existing synchronizied wrapper around
the bootstrapTokens BiMap saves us exactly one use of the explicit lock, in pendingRangeChanges.
I'm fine with giving that up.)

I think the code reads better with, than without them, but I can understand the argument for
keeping them "thin".  Sam?

bq. Would it simplify things to make calculateNaturalEndpoints return Set? getNaturalEndpoints
can still copy into an ArrayList for callers that want to sort.

I'm not sure it will simplify the existing code per say, but it's probably more correct.

bq. forceTableRepairPrimaryRange could use FBUtilities.waitOnFutures

I updated the patch to make it use FBUtilities.waitOnFuture (singular); The mix of unparametized
and wildcard generic Futures is kind of a mess here.

* @Override on SBMVM is redundant
* some redundant type information on .create calls

> TokenMetadata supports multiple tokens per host
> -----------------------------------------------
>                 Key: CASSANDRA-4121
>                 URL:
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Core
>            Reporter: Sam Overton
>            Assignee: Sam Overton
>              Labels: vnodes
>             Fix For: 1.2
> _Edit0: Append patch information._
> h3. Patches
> ||Compare||Raw diff||Description||
> |[01_support_multiple_tokens_per_host|]|[01_support_multiple_tokens_per_host.patch|]|Support
associating more than one token per node|
> ----
> _Note: These are branches managed with TopGit. If you are applying the patch output manually,
you will either need to filter the TopGit metadata files (i.e. {{wget -O - <url> | filterdiff
-x*.topdeps -x*.topmsg | patch -p1}}), or remove them afterward ({{rm .topmsg .topdeps}})._

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message