cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5536) ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange with tokens
Date Mon, 27 May 2013 16:23:20 GMT

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

Alex Liu commented on CASSANDRA-5536:
-------------------------------------

It looks good.
                
> ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange
with tokens
> -------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-5536
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5536
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.2.3
>            Reporter: Lanny Ripple
>            Assignee: Jonathan Ellis
>         Attachments: 5536-v2.txt, cassandra-1.2.3-5536.txt
>
>
> When ColumnFamilyInputFormat starts getting splits (via getSplits(...) [ColumnFamilyInputFormat.java:101])
it checks to see if a `jobKeyRange` has been set.  If it has been set it attempts to set the
`jobRange`.  However the if block (ColumnFamilyInputFormat.java:124) looks to see if the `jobKeyRange`
has tokens but asserts that the OrderPreservingPartitioner must be in use.
> This if block should be looking for keys (not tokens).  Code further down (ColumnFamilyInputFormat.java:147)
already manages the range if tokens are used but can never be reached.

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