aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2018-02-01 18:01:53 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-01 18:01:53 +0000
commit7530f3a5fd81ce79baca86e70709bad399cc4ec1 (patch)
tree5a7e4179e328becf1262bc628a61d02de122ea38
parent83fd6e96a90e20b90839098ae854fdb2f2706a83 (diff)
parentdbd1e64cb7d958b9504f298692bf7bc52a82f2c1 (diff)
Merge "Fixes in ManageTitanSchema"v1.2.0
-rw-r--r--aai-core/src/main/java/org/onap/aai/db/schema/ManageTitanSchema.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/db/schema/ManageTitanSchema.java b/aai-core/src/main/java/org/onap/aai/db/schema/ManageTitanSchema.java
index 0260543f..9af65c70 100644
--- a/aai-core/src/main/java/org/onap/aai/db/schema/ManageTitanSchema.java
+++ b/aai-core/src/main/java/org/onap/aai/db/schema/ManageTitanSchema.java
@@ -25,6 +25,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.onap.aai.introspection.Version;
@@ -37,7 +39,8 @@ import com.thinkaurelius.titan.core.schema.TitanManagement.IndexBuilder;
public class ManageTitanSchema {
-
+ private static final EELFLogger logger = EELFManager.getInstance().getLogger(AuditOXM.class);
+
private TitanManagement graphMgmt;
private TitanGraph graph;
private List<DBProperty> aaiProperties;
@@ -75,7 +78,7 @@ public class ManageTitanSchema {
createIndexes();
createEdgeLabels();
} catch (Exception e) {
- e.printStackTrace();
+ logger.error(e.getMessage(),e);
graphMgmt.rollback();
}
graphMgmt.commit();
@@ -242,10 +245,9 @@ public class ManageTitanSchema {
//waitForCompletion(indexName);
//TitanIndexRepair.hbaseRepair(AAIConstants.AAI_CONFIG_FILENAME, indexName, "");
} catch (Exception e) {
- // TODO Auto-generated catch block
graph.tx().rollback();
graph.close();
- e.printStackTrace();
+ logger.error(e.getMessage(),e);
}
//mgmt = graph.asAdmin().getManagementSystem();