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 7E27911C23 for ; Wed, 21 May 2014 16:40:39 +0000 (UTC) Received: (qmail 29583 invoked by uid 500); 21 May 2014 16:40:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29555 invoked by uid 500); 21 May 2014 16:40:39 -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 29547 invoked by uid 99); 21 May 2014 16:40:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 16:40:39 +0000 Date: Wed, 21 May 2014 16:40:39 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CASSANDRA-7120) Bad paging state returned for prepared statements for last page 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-7120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs reassigned CASSANDRA-7120: -------------------------------------- Assignee: Tyler Hobbs (was: Sylvain Lebresne) > Bad paging state returned for prepared statements for last page > --------------------------------------------------------------- > > Key: CASSANDRA-7120 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7120 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Tyler Hobbs > Assignee: Tyler Hobbs > Fix For: 2.1 rc1 > > > When executing a paged query with a prepared statement, a non-null paging state is sometimes being returned for the final page, causing an endless paging loop. > Specifically, this is the schema being used: > {noformat} > CREATE KEYSPACE test3rf WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'}'; > USE test3rf; > CREATE TABLE test3rf.test ( > k int PRIMARY KEY, > v int > ) > {noformat} > The inserts are like so: > {noformat} > INSERT INTO test3rf.test (k, v) VALUES (?, 0) > {noformat} > With values from [0, 99] used for k. > The query is {{SELECT * FROM test3rf.test}} with a fetch size of 3. > The final page returns the row with k=3, and the paging state is {{0004000000420004000176007fffffa2}}. This matches the paging state from three pages earlier. When executing this with a non-prepared statement, no paging state is returned for this page. > This problem doesn't happen with the 2.0 branch. -- This message was sent by Atlassian JIRA (v6.2#6252)