Commit 74726668 by Suma Shivaprasad

Fixed exception handing while creating index for a fails

parent ed6b9bf4
......@@ -150,9 +150,8 @@ public class GraphBackedSearchIndexer implements SearchIndexer {
LOG.info("Index creation for type {} complete", typeName);
} catch (Throwable throwable) {
// gets handle to currently open transaction
titanGraph.getManagementSystem().rollback();
LOG.error("Error creating index for type {}", dataType, throwable);
throw new MetadataException("Error while creating index for type " + dataType, throwable);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment