From 54d574d6559ce7e6f865f8b1156cf0e1d2a27cfe Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Sat, 25 May 2024 11:49:56 +0200 Subject: Reindexing in graphadmin not working reliably - disable the reindexing mechanism that was introduced with 1.13.6 Issue-ID: AAI-3856 Change-Id: Idb3982c816df2b7e99c2edccaaea0c8a20cc1b16 Signed-off-by: Fiete Ostkamp --- src/main/java/org/onap/aai/schema/GenTester.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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"); -- cgit 1.2.3-korg