[
https://issues.apache.org/jira/browse/ATLAS-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327654#comment-15327654
]
Hemanth Yamijala commented on ATLAS-806:
----------------------------------------
To give some more details:
ATLAS-512 introduced the class {{ReservedTypesRegistrar}}. This looks at the
JSON definitions of types to be pre-registered at server startup. The JSON
definitions of types are created at build time using the {{exec-maven-plugin}}
in the hooks - for example in hive hook's pom.xml we make a call to the
{{HiveDataModelGenerator}} to generate the JSON. The generated JSONs are copied
during build time into a {{models}} directory that is package in Atlas. The
types registrar checks to see if the types are registered and if so, does not
do any modifications. Hence, running them multiple times does not cause any
adverse behavior.
Possibly this method can be extended for this JIRA, not just for the business
taxonomy type registration, but also the registration of the default taxonomy
instance.
> 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)