Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 74751 invoked from network); 13 Apr 2011 17:17:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2011 17:17:46 -0000 Received: (qmail 29499 invoked by uid 500); 13 Apr 2011 17:17:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 29480 invoked by uid 500); 13 Apr 2011 17:17:45 -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 29472 invoked by uid 99); 13 Apr 2011 17:17:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2011 17:17:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 13 Apr 2011 17:17:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BA8DFA0B50 for ; Wed, 13 Apr 2011 17:17:05 +0000 (UTC) Date: Wed, 13 Apr 2011 17:17:05 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <1596788611.55570.1302715025760.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1858062058.52197.1302613925842.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CASSANDRA-2460) Make scrub validate deserialized columns 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-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019268#comment-13019268 ] Sylvain Lebresne edited comment on CASSANDRA-2460 at 4/13/11 5:16 PM: ---------------------------------------------------------------------- Attaching patch against 0.7 branch to validate as much of the column fields I can think of during scrub. Note that I didn't do it but it may be worth merging the forceDeserialization and validateColumns for {Pre|Lazy}CompactedRow. The 0.8 patch will probably be a little bit different, first because it may be cleaner to move the validation in CompactionController and because we will need to handle correctly CounterColumns. I'll write the patch separately when I have some feedback on this one. was (Author: slebresne): Attaching patch against 0.7 branch to validate as much of the column fields I can think of during scrub. Note that I didn't do it but it may be worst merging the forceDeserialization and validateColumns for {Pre|Lazy}CompactedRow. The 0.8 patch will probably be a little bit different, first because it may be cleaner to move the validation in CompactionController and because we will need to handle correctly CounterColumns. I'll write the patch separately when I have some feedback on this one. > Make scrub validate deserialized columns > ---------------------------------------- > > Key: CASSANDRA-2460 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2460 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Fix For: 0.7.5 > > Attachments: 0001-Make-scrub-check-column-fields.patch > > Original Estimate: 4h > Remaining Estimate: 4h > > Right now, scrub deserialize the columns but don't validate the fields, and such there is a number of errors it could fix (or at least corrupted rows it could skip) but don't. > This ticket proposes to handle those errors. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira