wal.open(); // create dirs
// create a seq file with no ack close.
File f = new File(wal.writingDir,
"writing.00000000.20100204-015814F430-0800.seq");
SeqfileEventSink sf = new SeqfileEventSink(f);
AckChecksumInjector<EventSink> inj = new AckChecksumInjector<EventSink>(sf);
inj.open();
inj.append(new EventImpl("test".getBytes()));
// need to keep the tag from the inj, but purposely mess up checksum
Event e = inj.closeEvent();
byte[] ref = e.get(AckChecksumInjector.ATTR_ACK_HASH);
Arrays.fill(ref, (byte) 0);
sf.append(e);
// close, and do not send good ack close
sf.close();
// do the low level recovery
wal.recover();
// check to make sure wal file is gone