use of org.apache.cassandra.notifications.SSTableDeletingNotification in project cassandra by apache.
the class CompactionStrategyManagerPendingRepairTest method sstableDeleted.
@Test
public void sstableDeleted() {
UUID repairID = registerSession(cfs, true, true);
LocalSessionAccessor.prepareUnsafe(repairID, COORDINATOR, PARTICIPANTS);
SSTableReader sstable = makeSSTable(true);
mutateRepaired(sstable, repairID);
csm.handleNotification(new SSTableAddedNotification(Collections.singleton(sstable)), cfs.getTracker());
Assert.assertTrue(pendingContains(repairID, sstable));
// delete sstable
SSTableDeletingNotification notification = new SSTableDeletingNotification(sstable);
csm.handleNotification(notification, cfs.getTracker());
Assert.assertFalse(pendingContains(repairID, sstable));
Assert.assertFalse(unrepairedContains(sstable));
Assert.assertFalse(repairedContains(sstable));
}
Aggregations