cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep Tata (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-395) BootstrapTest occasionally fails
Date Fri, 28 Aug 2009 00:44:59 GMT


Sandeep Tata commented on CASSANDRA-395:

Ah this is a fun bug -- looks like this happens if the following sequence occurs:

1. Call to flush memtable
2. Compaction submitted (from storeLocation after flushing memtable) but not yet completed.
3. CFS.doAntiCompaction reads keys from ssTables_
4. Compaction completes
5. SSTableReader.getApproximateKeyCount(files) now points to files that don't exist!

We have to prevent compaction from messing up the list of files that anticompaction needs
to work on to build the new file.
I didn't expect this would happen in a short Junit test. Need to see why compaction is getting

> BootstrapTest occasionally fails
> --------------------------------
>                 Key: CASSANDRA-395
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Sandeep Tata
>             Fix For: 0.4
> sample failure:
>     [junit] Testcase: testAntiCompaction1(org.apache.cassandra.db.BootstrapTest):   
   Caused an ERROR
>     [junit] /home/jonathan/projects/cassandra/git-trunk/build/test/cassandra/data/Keyspace1/Standard1-2-Data.db
(No such file or directory)                                                              
>     [junit] /home/jonathan/projects/cassandra/git-trunk/build/test/cassandra/data/Keyspace1/Standard1-2-Data.db
(No such file or directory)                                                              
>     [junit]     at Method)                     
>     [junit]     at<init>( 
>     [junit]     at<init>(  
>     [junit]     at<init>(
>     [junit]     at<init>(
>     [junit]     at
>     [junit]     at org.apache.cassandra.db.ColumnFamilyStore.initializePriorityQueue(
>     [junit]     at org.apache.cassandra.db.ColumnFamilyStore.doFileAntiCompaction(
>     [junit]     at org.apache.cassandra.db.ColumnFamilyStore.doAntiCompaction(
>     [junit]     at org.apache.cassandra.db.BootstrapTest.testAntiCompaction(
>     [junit]     at org.apache.cassandra.db.BootstrapTest.testAntiCompaction1(
> I have seen someone else mention this on IRC too.  Most of the time, the test passes.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message