while(channel.take() != null) {
i++;
}
tx.commit();
tx.close();
channel.stop();
Assert.assertEquals(25 - corrupted, i);
files = dataDir.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
if(name.contains(".bak")) {