Reindexing in graphadmin not working reliably 76/138076/1 1.13.7
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Sat, 25 May 2024 09:49:56 +0000 (11:49 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Sat, 25 May 2024 09:52:00 +0000 (11:52 +0200)
- 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>
pom.xml
src/main/java/org/onap/aai/schema/GenTester.java
version.properties

diff --git a/pom.xml b/pom.xml
index 86b79c6..5a3e1db 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
     </parent>
     <groupId>org.onap.aai.graphadmin</groupId>
     <artifactId>aai-graphadmin</artifactId>
-    <version>1.13.6-SNAPSHOT</version>
+    <version>1.13.7-SNAPSHOT</version>
 
     <properties>
 
index b7f4a8f..2993d90 100644 (file)
@@ -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");
index 53fad52..f92cbd9 100644 (file)
@@ -5,7 +5,7 @@
 
 major_version=1
 minor_version=13
-patch_version=6
+patch_version=7
 
 base_version=${major_version}.${minor_version}.${patch_version}