Buggy code:
public class ColumnFamilyStore implements ColumnFamilyStoreMBean { private static Logger logger = LoggerFactory . getLogger ( ColumnFamilyStore . class ) ; private static final ExecutorService flushWriter = new JMXEnabledThreadPoolExecutor ( DatabaseDescriptor . getFlushWriters ( ) , StageManager . KEEPALIVE , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ( DatabaseDescriptor . getFlushQueueSize ( ) ) , new NamedThreadFactory ( "FlushWriter" ) , "internal" ) ; public static final ExecutorService postFlushExecutor = new JMXEnabledThreadPoolExecutor ( "MemtablePostFlusher" ) ; public final Table table ; public final String columnFamily ; public final CFMetaData metadata ; public final IPartitioner partitioner ; private final String mbeanName ; private boolean invalid = false ; private final DataTracker data ; private volatile int memtableSwitchCount = 0 ; private AtomicInteger fileIndexGenerator = new AtomicInteger ( 0 ) ; public final SecondaryIndexManager indexManager ; private LatencyTracker readStats = new LatencyTracker ( ) ; private LatencyTracker writeStats = new LatencyTracker ( ) ; private final EstimatedHistogram recentSSTablesPerRead = new EstimatedHistogram ( 35 ) ; private final EstimatedHistogram sstablesPerRead = new EstimatedHistogram ( 35 ) ; private static final int INTERN_CUTOFF = 256 ; public final ConcurrentMap < ByteBuffer , ByteBuffer > internedNames = new org . cliffc . high_scale_lib . NonBlockingHashMap < ByteBuffer , ByteBuffer > ( ) ; private volatile DefaultInteger minCompactionThreshold ; private volatile DefaultInteger maxCompactionThreshold ; private volatile AbstractCompactionStrategy compactionStrategy ; private volatile DefaultInteger rowCacheSaveInSeconds ; private volatile DefaultInteger keyCacheSaveInSeconds ; private volatile DefaultInteger rowCacheKeysToSave ; public final Lock flushLock = new ReentrantLock ( ) ; public static enum CacheType { KEY_CACHE_TYPE ( "KeyCache" ) , ROW_CACHE_TYPE ( "RowCache" ) ; public final String name ; private CacheType ( String name ) { } @ Override public String toString ( ) { } } public final AutoSavingCache < Pair < Descriptor , DecoratedKey > , Long > keyCache ; public final AutoSavingCache < DecoratedKey , ColumnFamily > rowCache ; volatile double liveRatio = 1.0 ; private final AtomicLong liveRatioComputedAt = new AtomicLong ( 32 ) ; public void reload ( ) throws IOException { } private ColumnFamilyStore ( Table table , String columnFamilyName , IPartitioner partitioner , int generation , CFMetaData metadata ) { } public void unregisterMBean ( ) { } public long getMinRowSize ( ) { } public long getMaxRowSize ( ) { } public long getMeanRowSize ( ) { } public int getMeanColumns ( ) { } public static ColumnFamilyStore createColumnFamilyStore ( Table table , String columnFamily ) { } public static synchronized ColumnFamilyStore createColumnFamilyStore ( Table table , String columnFamily , IPartitioner partitioner , CFMetaData metadata ) { } public static void scrubDataDirectories ( String table , String columnFamily ) { <START_BUG> ColumnFamilyStore . logger . info ( "Removing<seq2seq4repair_space>compacted<seq2seq4repair_space>SSTable<seq2seq4repair_space>files<seq2seq4repair_space>(see<seq2seq4repair_space>http:////wiki.apache.org//cassandra//MemtableSSTable)" ) ; <END_BUG> for ( Map . Entry < Descriptor , Set < Component > > sstableFiles : ColumnFamilyStore . files ( table , columnFamily , true , true ) . entrySet ( ) ) { Descriptor desc = sstableFiles . getKey ( ) ; Set < Component > components = sstableFiles . getValue ( ) ; if ( ( components . contains ( COMPACTED_MARKER ) ) || ( desc . temporary ) ) { try { SSTable . delete ( desc , components ) ; } catch ( IOException e ) { throw new IOError ( e ) ; } continue ; } File dataFile = new File ( desc . filenameFor ( DATA ) ) ; if ( ( components . contains ( DATA ) ) && ( ( dataFile . length ( ) ) > 0 ) ) continue ; ColumnFamilyStore . logger . warn ( "Removing<seq2seq4repair_space>orphans<seq2seq4repair_space>for<seq2seq4repair_space>{}:<seq2seq4repair_space>{}" , desc , components ) ; for ( Component component : components ) { try { FileUtils . deleteWithConfirm ( desc . filenameFor ( component ) ) ; } catch ( IOException e ) { throw new IOError ( e ) ; } } } Pattern tmpCacheFilePattern = Pattern . compile ( ( ( ( table + "-" ) + columnFamily ) + "-(Key|Row)Cache.*\\.tmp$" ) ) ; File dir = new File ( DatabaseDescriptor . getSavedCachesLocation ( ) ) ; if ( dir . exists ( ) ) { assert dir . isDirectory ( ) ; for ( File file : dir . listFiles ( ) ) if ( tmpCacheFilePattern . matcher ( file . getName ( ) ) . matches ( ) ) if ( ! ( file . delete ( ) ) ) ColumnFamilyStore . logger . warn ( ( "could<seq2seq4repair_space>not<seq2seq4repair_space>delete<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) ) ; } CFMetaData cfm = instance . getCFMetaData ( table , columnFamily ) ; if ( cfm != null ) { for ( ColumnDefinition def : cfm . getColumn_metadata ( ) . values ( ) ) ColumnFamilyStore . scrubDataDirectories ( table , cfm . indexColumnFamilyName ( def ) ) ; } } public void initCaches ( ) { } public void scheduleCacheSaving ( int rowCacheSavePeriodInSeconds , int keyCacheSavePeriodInSeconds , int rowCacheKeysToSave ) { } public AutoSavingCache < Pair < Descriptor , DecoratedKey > , Long > getKeyCache ( ) { } private static Map < Descriptor , Set < Component > > files ( String keyspace , final String columnFamily , final boolean includeCompacted , final boolean includeTemporary ) { } private static List < Pair < Descriptor , Component > > files ( File path , final String columnFamilyName ) { } public static synchronized void loadNewSSTables ( String ksName , String cfName ) { } public synchronized void loadNewSSTables ( ) { } public String getColumnFamilyName ( ) { } public String getFlushPath ( long estimatedSize , String version ) { } public String getTempSSTablePath ( String directory , String version ) { } public String getTempSSTablePath ( String directory ) { } public Future < ? > maybeSwitchMemtable ( Memtable oldMemtable , final boolean writeCommitLog ) { } public boolean isDropped ( ) { } public Future < ? > forceFlush ( ) { } public void forceBlockingFlush ( ) throws InterruptedException , ExecutionException { }

Fix:
ColumnFamilyStore . logger . info ( ( ( "Removing<seq2seq4repair_space>compacted<seq2seq4repair_space>SSTable<seq2seq4repair_space>files<seq2seq4repair_space>from<seq2seq4repair_space>" + columnFamily ) + "<seq2seq4repair_space>(see<seq2seq4repair_space>http:////wiki.apache.org//cassandra//MemtableSSTable)" ) ) ;