int numDocs = atLeast(2000);
IndexWriter iw = new IndexWriter(dir, conf);
final Random r = new Random(random().nextLong());
dir.failOn(new Failure() {
@Override
public void eval(MockDirectoryWrapper dir) throws IOException {
Exception e = new Exception();
StackTraceElement stack[] = e.getStackTrace();
boolean ok = false;