Skip to content

Commit e4fd01d

Browse files
committed
CC5: move first delete to deleteWithConfirm, add debugging
1 parent 124be37 commit e4fd01d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/unit/org/apache/cassandra/db/commitlog/CommitLogSegmentManagerCDCTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,18 @@ private void testSegmentFlaggingOnCreation0() throws Throwable
499499
cdcMgr.awaitManagementTasksCompletion();
500500
// Delete all files in cdc_raw
501501
for (File f : DatabaseDescriptor.getCDCLogLocation().tryList())
502-
f.delete();
502+
{
503+
logger.debug("delete {}", f.absolutePath());
504+
FileUtils.deleteWithConfirm(f);
505+
}
503506
cdcMgr.updateCDCTotalSize();
504507
// Confirm cdc update process changes flag on active segment
505508
expectCurrentCDCState(CDCState.PERMITTED);
506509
}
507510

508511
// Clear out archived CDC files
509512
for (File f : DatabaseDescriptor.getCDCLogLocation().tryList()) {
513+
logger.debug("delete {}", f.absolutePath());
510514
FileUtils.deleteWithConfirm(f);
511515
}
512516
});

0 commit comments

Comments
 (0)