indexAction.doPreCommit(indexSearcher, writer);
commit();
indexAction.doPostCommit(writer);
} catch (Exception e) {
indexAction.doPreRollback(writer);
writer.rollback();
openWriter();
indexAction.doPostRollback(writer);
throw new IOException("Unknown error during mutation", e);
} finally {
if (indexSearcher != null) {