I forgot to add I created a ticket for it
https://issues.apache.org/jira/browse/CASSANDRA-5469
See that ticket for recent changes to the MeteredFlusher.
IMHO this is not related to the metered flusher. Index rebuilds force a flush.
Cheers
-
Aaron Morton
Freelance Cassandra Co
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
> 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.
Seems odd.
AFAIK that startup is single threaded and the scrub runs before the tables are
opened. See AbstractCassandraDaemon.