aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/aai/schema/GenTester.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/main/java/org/onap/aai/schema/GenTester.java b/src/main/java/org/onap/aai/schema/GenTester.java
index ebc0aba..04ade0a 100644
--- a/src/main/java/org/onap/aai/schema/GenTester.java
+++ b/src/main/java/org/onap/aai/schema/GenTester.java
@@ -154,23 +154,25 @@ public class GenTester {
System.out.println(imsg);
LOGGER.info(imsg);
SchemaGenerator.loadSchemaIntoJanusGraph(graph, graphMgt, null);
+
+ if( graph != null ){
+ imsg = "-- graph commit";
+ System.out.println(imsg);
+ LOGGER.info(imsg);
+ graph.tx().commit();
+
+ imsg = "-- graph shutdown ";
+ System.out.println(imsg);
+ LOGGER.info(imsg);
+ graph.close();
+ }
+
} catch(Exception ex) {
ErrorLogHelper.logError("AAI_4000", ex.getMessage());
System.exit(1);
}
- if( graph != null ){
- String imsg = "-- graph commit";
- System.out.println(imsg);
- LOGGER.info(imsg);
- graph.tx().commit();
-
- imsg = "-- graph shutdown ";
- System.out.println(imsg);
- LOGGER.info(imsg);
- graph.close();
- }
LOGGER.auditEvent("-- all done, if program does not exit, please kill.");
System.exit(0);