summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-05-25 11:49:56 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-05-25 11:52:00 +0200
commit54d574d6559ce7e6f865f8b1156cf0e1d2a27cfe (patch)
tree6abc3146316809789f0cc413f223f32afc5ce2b8 /src/main/java/org/onap
parent66a9a64ad2b39ec28fa48d41f6b1a9dd0262ffcd (diff)
Reindexing in graphadmin not working reliably1.13.7
- disable the reindexing mechanism that was introduced with 1.13.6 Issue-ID: AAI-3856 Change-Id: Idb3982c816df2b7e99c2edccaaea0c8a20cc1b16 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/main/java/org/onap')
-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");