This is an automated email from the ASF dual-hosted git repository. sarath pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit e3aba09dbe1170f1229daf1dc1ed5d9da6b4d201 Author: ashutoshm <[email protected]> AuthorDate: Fri Jul 5 15:11:19 2019 -0700 ATLAS-3318: Throw exception when getGraphInstance() is unable to open janusgraph instance Signed-off-by: Sarath Subramanian <[email protected]> (cherry picked from commit ce5b6d7fea167b880b279076b2498c0786a5b4fd) --- .../apache/atlas/repository/graphdb/janus/AtlasJanusGraphDatabase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphDatabase.java b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphDatabase.java index a8945c0..c8c6a52 100644 --- a/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphDatabase.java +++ b/graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraphDatabase.java @@ -174,6 +174,9 @@ public class AtlasJanusGraphDatabase implements GraphDatabase<AtlasJanusVertex, config.addProperty("graph.allow-upgrade", true); graphInstance = JanusGraphFactory.open(config); } + else { + throw new RuntimeException(e); + } } atlasGraphInstance = new AtlasJanusGraph(); validateIndexBackend(config);
