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

Sylvain Lebresne updated CASSANDRA-3547:
----------------------------------------

    Attachment: 3547.patch

Patch to freeze every memtable we actually flush.
                
> Race between cf flush and  its secondary indexes flush 
> -------------------------------------------------------
>
>                 Key: CASSANDRA-3547
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3547
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>             Fix For: 1.0.6
>
>         Attachments: 3547.patch
>
>
> When a CF with indexes is flushed, it's indexes are flushed too. In 
> particular their memtable is switched, but without making the old memtable 
> frozen. This can conflict with a concurrent flush of the index itself, as 
> reported on the user list by Michael Vaknine:
> {noformat}
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 
> AbstractCassandraDaemon.java (line 133) Fatal exception in thread Thread
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 java.lang.AssertionError
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.ColumnFamilyStore.maybeSwitchMemtable(ColumnFamilyStore.java:671)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.ColumnFamilyStore.forceFlush(ColumnFamilyStore.java:745)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.ColumnFamilyStore.forceBlockingFlush(ColumnFamilyStore.java:750)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.index.keys.KeysIndex.forceBlockingFlush(KeysIndex.java:119)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.index.SecondaryIndexManager.flushIndexesBlocking(SecondaryIndexManager.java:258)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.db.index.SecondaryIndexManager.maybeBuildSecondaryIndexes(SecondaryIndexManager.java:123)
> TST-Cass2 ERROR [Thread-58] 2011-11-30 20:40:17,449 at 
> org.apache.cassandra.streaming.StreamInSession.closeIfFinished(StreamInSession.java:151)
> {noformat}

--
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

        

Reply via email to