if (maybeFail && random().nextInt(10) == 0) {
if (VERBOSE) {
System.out.println("TEST: now fail; thread=" + Thread.currentThread().getName() + " exc:");
new Throwable().printStackTrace(System.out);
}
throw new FakeIOException();
}
}
});
IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, null);