Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3315

AtlasGraphProvider: Allow for Creation of JanusGraph DB Connection Initialized with Batch Loading Enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 2.0.0
    • 2.1.0, 3.0.0, 1.3.0
    • atlas-core
    • 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:

      1. If JanusGraphFactory.open encounters errors, we log it and proceed with construction of AtlasJanusGraphDatabase.
      2. 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.

      Attachments

        Activity

          People

            amestry Ashutosh Mestry
            amestry Ashutosh Mestry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: