summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/aai/schema/GenTester.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/org/onap/aai/schema/GenTester.java b/src/main/java/org/onap/aai/schema/GenTester.java
index b7f4a8f..2993d90 100644
--- a/src/main/java/org/onap/aai/schema/GenTester.java
+++ b/src/main/java/org/onap/aai/schema/GenTester.java
@@ -147,13 +147,15 @@ public class GenTester {
LOGGER.debug("-- committing transaction ");
graph.tx().commit();
- if (!vertexesToReindex.isEmpty()) {
-
+ boolean reindexingEnabled = false; // disable reindexing for now, since it's not working correctly
+ if (reindexingEnabled && !vertexesToReindex.isEmpty()) {
killTransactionsAndInstances(graph);
LOGGER.info("Number of edge indexes to reindex: " + vertexesToReindex.size());
SchemaGenerator.reindexEdgeIndexes(graph, vertexesToReindex);
} else {
- LOGGER.info("Nothing to reindex.");
+ if (vertexesToReindex.isEmpty()) {
+ LOGGER.info("Nothing to reindex.");
+ }
}
graph.close();
LOGGER.info("Closed the graph");