Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 79239 invoked from network); 28 Mar 2011 14:46:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2011 14:46:46 -0000 Received: (qmail 80835 invoked by uid 500); 28 Mar 2011 14:46:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 80811 invoked by uid 500); 28 Mar 2011 14:46: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 80803 invoked by uid 99); 28 Mar 2011 14:46:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 14:46: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; Mon, 28 Mar 2011 14:46: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 1BD0883E68 for ; Mon, 28 Mar 2011 14:46:06 +0000 (UTC) Date: Mon, 28 Mar 2011 14:46:06 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: <488318460.16784.1301323566110.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <197375166.4285.1299590459778.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CASSANDRA-2284) Make changes to the set of memtables and sstables of a cfstore atomic 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-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne resolved CASSANDRA-2284. ----------------------------------------- Resolution: Fixed > Make changes to the set of memtables and sstables of a cfstore atomic > ---------------------------------------------------------------------- > > Key: CASSANDRA-2284 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2284 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Sylvain Lebresne > Assignee: Sylvain Lebresne > Priority: Minor > Fix For: 0.8 > > Attachments: 0001-Make-memtable-and-sstable-switches-atomic-v2.patch, 0001-Make-memtable-and-sstable-switches-atomic-v3.patch, 0001-Make-memtable-and-sstable-switches-atomic.patch, 2284-v2-rebased.txt > > Original Estimate: 8h > Remaining Estimate: 8h > > Some switches happen in the set of memtables and sstables of a cfstore: > * when we switch the memtable, the current memtable is replaced by a new one and add to the memtablesPendingFlush > * when a memtable is fully flushed, it is removed from memtablesPendingFlush and the newly created sstable is added to the set of active sstables. > * after compaction, compacted memtables are removed from the active sstables and the compacted sstable is added instead > Only the last of these operations is atomic. This ticket proposes to makes all of them atomic, using the idea of the View idea hinted by Stu in the comments of CASSANDRA-1954. > The main reason for this is to fix CASSANDRA-2105. But I think that another benefit of this is to make reasoning about those operations easier. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira