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 148BB101AF for ; Mon, 8 Dec 2014 13:59:13 +0000 (UTC) Received: (qmail 48282 invoked by uid 500); 8 Dec 2014 13:59:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 48246 invoked by uid 500); 8 Dec 2014 13:59:12 -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 48235 invoked by uid 99); 8 Dec 2014 13:59:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 13:59:12 +0000 Date: Mon, 8 Dec 2014 13:59:12 +0000 (UTC) From: "Philip Thompson (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-8408) limit appears to replace page size under certain conditions 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-8408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Thompson updated CASSANDRA-8408: --------------------------------------- Reproduced In: 2.1.2, 2.0.12 (was: 2.1.2) Russ, the test you attached is failing with the same error messages in 2.0-HEAD as well, so I am adding that to the reproduced versions. > limit appears to replace page size under certain conditions > ----------------------------------------------------------- > > Key: CASSANDRA-8408 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8408 > Project: Cassandra > Issue Type: Bug > Reporter: Russ Hatch > Assignee: Tyler Hobbs > Priority: Minor > > This seems it could be related to CASSANDRA-8403. > When paging a query with: > limit < page size << data size, and querying using an 'IN' clause across several partitions, I get back several pages of size=limit (instead of the page size being used). So the limit is being exceeded and it seems to supplant the page size value, but something is still keeping the total rows returned down. > To repro, create a table: > CREATE TABLE paging_test ( id int, value text, PRIMARY KEY (id, value) ) > And add data across several partitions (I used 6 partitions). Add a bunch of rows to each partition (I have 80 total across all partitions). > Perform a paged query using an 'IN' clause across all the partitions, where: > limit < page_size << data size. I used something like: > SELECT * FROM paging_test where id in (1,2,3,4,5,6) LIMIT 9; > (with a page_size of 20 for the query). > What I get returned is three pages of sizes: 9, 9, 8 -- 26 rows in total but I'm uncertain why. -- This message was sent by Atlassian JIRA (v6.3.4#6332)