use of org.apache.cassandra.io.sstable.Component in project eiger by wlloyd.
the class ColumnFamilyStoreTest method testBackupAfterFlush.
@Test
public void testBackupAfterFlush() throws Throwable {
ColumnFamilyStore cfs = insertKey1Key2();
for (int version = 1; version <= 2; ++version) {
Descriptor existing = new Descriptor(cfs.directories.getDirectoryForNewSSTables(1), "Keyspace2", "Standard1", version, false);
Descriptor desc = new Descriptor(Directories.getBackupsDirectory(existing), "Keyspace2", "Standard1", version, false);
for (Component c : new Component[] { Component.DATA, Component.PRIMARY_INDEX, Component.FILTER, Component.STATS }) assertTrue("can not find backedup file:" + desc.filenameFor(c), new File(desc.filenameFor(c)).exists());
}
}
Aggregations