[ 
https://issues.apache.org/jira/browse/CASSANDRA-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-2284:
----------------------------------------

    Attachment: 0001-Make-memtable-and-sstable-switches-atomic.patch

Attached patch against trunk and after CASSANDRA-2272. This could be rebased 
without #2272 but I'd rather not have to unless there is strong opposition to 
it.

The patch moves a bunch of functions from ColumnFamilyStore to (the new) 
DataTracker. Arguably this is not absolutely necessray for a handful of them, 
but the rational was to cut some fat out of ColumnFamilyStore when that made 
sense (2.2K loc in current trunk, 1.8K (still) after this).


> 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: Bug
>          Components: Core
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>             Fix For: 0.8
>
>         Attachments: 0001-Make-memtable-and-sstable-switches-atomic.patch
>
>   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

Reply via email to