You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (JIRA)" <ji...@apache.org> on 2019/07/03 19:36:00 UTC

[jira] [Commented] (ATLAS-3315) AtlasGraphProvider: Allow for Creation of JanusGraph DB Connection Initialized with Batch Loading Enabled

    [ https://issues.apache.org/jira/browse/ATLAS-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16878121#comment-16878121 ] 

Sarath Subramanian commented on ATLAS-3315:
-------------------------------------------

Thanks for the patch [~ashutoshm]. +1.

> 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: AltasJanusGraph-Init-exception-fix.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)