try {
createFile(fs1, "/testAppendFileRace", 1, BBW_SIZE);
stm.close();
NameNode nn = cluster.getNameNode();
FSEditLog editLogSpy = FSImageAdapter.injectEditLogSpy(nn.getNamesystem());
DelayAnswer delayer = new DelayAnswer();
doAnswer(delayer).when(editLogSpy).logSync();
final AtomicReference<Throwable> err = new AtomicReference<Throwable>();
Thread appender = new Thread() {