// Sleep for a while to ensure data are flushed
Thread.sleep(2000);
// verify that we only keep at most journal files
for (File journalDir : tmpDirs) {
List<Long> logs = Bookie.listJournalIds(journalDir, new JournalIdFilter() {
@Override
public boolean accept(long journalId) {
return true;
}
});