for (HdfsDirectory directory : indexesToImport) {
LOG.info("Starting import [{0}], commiting on [{1}/{2}]", directory, shard, table);
indexWriter.commit();
boolean isSuccess = true;
boolean isRollbackDueToException = false;
boolean emitDeletes = indexWriter.numDocs() != 0;
try {
isSuccess = applyDeletes(directory, indexWriter, shard, emitDeletes);
} catch (IOException e) {
LOG.error("Some issue with deleting the old index on [{0}/{1}]", e, shard, table);
isSuccess = false;