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 281A4740B for ; Tue, 1 Nov 2011 14:59:56 +0000 (UTC) Received: (qmail 83550 invoked by uid 500); 1 Nov 2011 14:59:56 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 83525 invoked by uid 500); 1 Nov 2011 14:59:56 -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 83517 invoked by uid 99); 1 Nov 2011 14:59:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 14:59:55 +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 14:59:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9960232CBDA for ; Tue, 1 Nov 2011 14:59:32 +0000 (UTC) Date: Tue, 1 Nov 2011 14:59:32 +0000 (UTC) From: "Byron Clark (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1007078581.45931.1320159572629.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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141217#comment-13141217 ] Byron Clark commented on CASSANDRA-3303: ---------------------------------------- Yes, please. I'll be attaching the improved patch later today. > 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