Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 38198 invoked from network); 12 Jan 2011 03:14:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2011 03:14:08 -0000 Received: (qmail 53056 invoked by uid 500); 12 Jan 2011 03:14:08 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 52959 invoked by uid 500); 12 Jan 2011 03:14:07 -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 52951 invoked by uid 99); 12 Jan 2011 03:14:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 03:14:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jan 2011 03:14:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0C3DjnC020522 for ; Wed, 12 Jan 2011 03:13:45 GMT Message-ID: <8579414.304231294802025844.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 22:13:45 -0500 (EST) From: "Ryan King (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1935) Refuse to open SSTables from the future In-Reply-To: <20870944.150841294193566156.JavaMail.jira@thor> 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-1935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ryan King updated CASSANDRA-1935: --------------------------------- Attachment: CASSANDRA-1935.patch Here's the simplest patch that could work. I'm a bit afraid that this may cause problems in scenarios other than startup. Also, I'd appreciate feedback on a better exception to raise. > Refuse to open SSTables from the future > --------------------------------------- > > Key: CASSANDRA-1935 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1935 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Stu Hood > Priority: Minor > Fix For: 0.8 > > Attachments: CASSANDRA-1935.patch > > > If somebody has rolled back to a previous version of Cassandra that is unable to read an SSTable written by a future version correctly (indicated by a version change), failing fast is safer than accidentally performing a compaction that rewrites incorrect data and leaves you in an odd state. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.