[ 
https://issues.apache.org/jira/browse/ATLAS-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Mestry updated ATLAS-3315:
-----------------------------------
    Attachment:     (was: AltasJanusGraph-Init-exception-fix.patch)

> AtlasGraphProvider: Allow for Creation of JanusGraph DB Connection 
> Initialized with Batch Loading Enabled
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-3315
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3315
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 1.2.0, 2.0.0
>            Reporter: Ashutosh Mestry
>            Assignee: Ashutosh Mestry
>            Priority: Major
>             Fix For: 1.2.0, 2.0.0, trunk
>
>         Attachments: 
> ATLAS-3315-Error-during-AtlasGraphDatabase-initializ.patch
>
>
> *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._



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to