[
https://issues.apache.org/jira/browse/ATLAS-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327662#comment-15327662
]
Hemanth Yamijala commented on ATLAS-806:
----------------------------------------
An alternative approach could be to see if a Business Taxonomy initializer can
be registered with Guice and be eagerly initialized. The only catch would be in
a HA scenario where two instances might try to register the same object at the
same time. In order to handle this, this can be registered as an
{{ActiveStateChangeHandler}}. Any implementation of this interface can be used
as a model for how to use it. An example implementation is the
{{HBaseBasedAuditRepository}} class.
> Business Taxonomy related types should be registered one time on server
> startup.
> --------------------------------------------------------------------------------
>
> Key: ATLAS-806
> URL: https://issues.apache.org/jira/browse/ATLAS-806
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 0.7-incubating
> Reporter: Hemanth Yamijala
> Assignee: John Speidel
> Fix For: 0.7-incubating
>
>
> The Taxonomy type is currently being registered on the first call to the API.
> We have seen this could have issues if calls are made in parallel - as could
> happen in a web situation. Atlas already has the necessary framework to
> register types at startup time which was introduced as part of ATLAS-512.
> This should be used here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)