Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 067B8F6B8 for ; Fri, 3 May 2013 20:02:17 +0000 (UTC) Received: (qmail 44615 invoked by uid 500); 3 May 2013 20:02:16 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 44592 invoked by uid 500); 3 May 2013 20:02:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 44538 invoked by uid 99); 3 May 2013 20:02:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 20:02:16 +0000 Date: Fri, 3 May 2013 20:02:16 +0000 (UTC) From: "Lanny Ripple (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-5536) ColumnFamilyInputFormat demands OrderPreservingPartitioner when specifying InputRange with tokens MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lanny Ripple updated CASSANDRA-5536: ------------------------------------ Attachment: cassandra-1.2.3-5536.txt Suggested changes. > 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 > Attachments: 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