Re: Rename failed while cassandra is starting up

2013-04-14 Thread Boris Yen
Hi Aaron, "startup is single threaded and the scrub runs before the tables are opened ". This is what I was thinking too. However, after using the debugger to trace the code, I realized that MeteredFlusher (see the "countFlushBytes" method) might open the sstables before the scrub is completed. I

Re: Rename failed while cassandra is starting up

2013-04-14 Thread aaron morton
Replying on the user group. - Aaron Morton Freelance Cassandra Consultant New Zealand @aaronmorton http://www.thelastpickle.com On 14/04/2013, at 3:50 PM, Boris Yen wrote: > Hi All, > > Recently, we encountered an error on 1.0.12 that prevented cassandra from > starting up. Fr

Rename failed while cassandra is starting up

2013-04-13 Thread Boris Yen
Hi All, Recently, we encountered an error on 1.0.12 that prevented cassandra from starting up. From the log messages, it looked like the table/keyspace was opened before the scrubDataDirectories was executed. This created a race condition between two threads. One was trying to rename files while t