Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.0, 2.0.0
-
None
Description
Description
Case where JanusGraphFactory.open throws an exception, the initialization goes into an infinite loop.
Expected Behavior: The exception should be logged and initialization should exit.
Actual Behavior: Initialization goes into an infinite loop.
Root cause:
- If JanusGraphFactory.open encounters errors, we log it and proceed with construction of AtlasJanusGraphDatabase.
- The ctor of AtlasJanusGraphDatabase calls getInstance which goes back to step 1.
Solution
Handle exception and log, initialize AtlasJanusGraphDatabase only on successful completion of JanusGraphFactory.open.