FileUtil.dumbfilecopy(acked, new File(writing,
"writeahead.00000000.20100204-015814F430-0800.seq"));
// EventSource src = FlumeBuilder.buildSource("");
EventSink snk = FlumeBuilder.buildSink(new ReportTestingContext(
LogicalNodeContext.testingContext()),
"{ ackedWriteAhead => { ackChecker => counter(\"count\") } }");
EventSource src = MemorySinkSource.cannedData("foo foo foo ", 5);
snk.open();
src.open();
EventUtil.dumpAll(src, snk);
src.close();
snk.close(); // this should block until recovery complete.
// agent checks for ack registrations.
BenchmarkHarness.node.getAckChecker().checkAcks();
CounterSink cnt = (CounterSink) ReportManager.get().getReportable("count");