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 5B4657C6F for ; Tue, 1 Nov 2011 17:21:54 +0000 (UTC) Received: (qmail 3510 invoked by uid 500); 1 Nov 2011 17:21:53 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 3467 invoked by uid 500); 1 Nov 2011 17:21:53 -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 3402 invoked by uid 99); 1 Nov 2011 17:21:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 17:21:53 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 17:21:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5E21232CBAA for ; Tue, 1 Nov 2011 17:21:32 +0000 (UTC) Date: Tue, 1 Nov 2011 17:21:32 +0000 (UTC) From: "Jonathan Ellis (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <843759501.46536.1320168092386.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1094653573.6681.1317719193973.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3303) Short reads protection results in returning more columns than asked for 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-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141350#comment-13141350 ] Jonathan Ellis commented on CASSANDRA-3303: ------------------------------------------- Belatedly and probably redundantly, I note that any time we hit RowRepairResolver we can have this count problem, not just w/ short read resolution. (E.g., CASSANDRA-3395) > Short reads protection results in returning more columns than asked for > ----------------------------------------------------------------------- > > Key: CASSANDRA-3303 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3303 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.0 > Reporter: Sylvain Lebresne > Assignee: Byron Clark > Priority: Minor > Fix For: 1.0.2 > > Attachments: cassandra-3303-1.patch, cassandra-3303-2.patch, cassandra-3303-3.patch, long_read.sh > > > When we detect a short read (in SP.fetchRows), we retry a new command created by: > {noformat} > logger.debug("detected short read: expected {} columns, but only resolved {} columns", sliceCommand.count, liveColumnsInRow); > int retryCount = sliceCommand.count + sliceCommand.count - liveColumnsInRow; > SliceFromReadCommand retryCommand = new SliceFromReadCommand(command.table, > command.key, > command.queryPath, > sliceCommand.start, > sliceCommand.finish, > sliceCommand.reversed, > retryCount); > {noformat} > That is, in that new command, the count is greater than what asked in the initial command. But we never cut back the result of that new retried query. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira