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] Issue Comment Edited: (CASSANDRA-58) Encapsulate Partitioner logic
Date Fri, 10 Apr 2009 15:33:15 GMT

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

Jonathan Ellis edited comment on CASSANDRA-58 at 4/10/09 8:32 AM:
------------------------------------------------------------------

... sorry, I am rushing too much and forgot the rest of what you wrote.  You're right, the
KeyInRanges calls in anticompaction expect an undecorated key.  (So that was already broken,
pre-58.)  I did catch that in #65.  I will also fix that in my patch for 67 while waiting
for review of 65.

      was (Author: jbellis):
    ... sorry, I am rushing too much and forgot the rest of what you wrote.  You're right,
the KeyInRanges calls expect an undecorated key.  (So that was already broken, pre-58.)  I
will fix that in my patch for 67.
  
> Encapsulate Partitioner logic
> -----------------------------
>
>                 Key: CASSANDRA-58
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-58
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jonathan Ellis
>         Attachments: 0002-consolidate-partition-behavior-in-IPartitioner-so-c.patch,
CASSANDRA-58-v2.patch
>
>
> the codebase is littered with if statements like this
>             PartitionerType pType = StorageService.getPartitionerType();
>             switch( pType )
>             {
>                 case OPHF:
>                     // code for order-preserving hash
>                     break;
>                     
>                 default:
>                     // code for random hash
>                     break;
>             }
> We want to move all of those if statements into Partitioner methods to make maintenance
easier and to better ensure correctness.

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