> On May 27, 2016, 7:11 a.m., Hemanth Yamijala wrote:
> > catalog/src/main/java/org/apache/atlas/catalog/TermResourceProvider.java, 
> > line 130
> > <https://reviews.apache.org/r/47898/diff/1/?file=1395474#file1395474line130>
> >
> >     Would it help if the term subtree is sorted from leaf nodes upwards, so 
> > that if there is a failure in the interim, at least we will not have 
> > dangling terms.
> 
> John Speidel wrote:
>     Yeah, I had thought of this also but didn't implement it due to the added 
> overhead for all delete calls.
>     The real problem here is the inability for the catalog call to control 
> transaction demarcation because of the way that transactions are handled in 
> the Atlas Repository layer.  The bottom line is that ordering of the terms 
> bottom up is just a band-aid for the real transactional issue described above 
> that would introduce overhead even for non failure scenarios. 
>     
>     Let me know if you would still like me to make this change or whether we 
> should file a Jira for a proper fix.

I don't feel strongly about this. Can do later.


- Hemanth


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/47898/#review135172
-----------------------------------------------------------


On May 27, 2016, 9:18 p.m., John Speidel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47898/
> -----------------------------------------------------------
> 
> (Updated May 27, 2016, 9:18 p.m.)
> 
> 
> Review request for atlas and Hemanth Yamijala.
> 
> 
> Bugs: ATLAS-793
>     https://issues.apache.org/jira/browse/ATLAS-793
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> Provide support for deletion of taxonomies, terms and tags
> 
> 
> Diffs
> -----
> 
>   catalog/src/main/java/org/apache/atlas/catalog/AtlasTypeSystem.java 6f2e0be 
>   catalog/src/main/java/org/apache/atlas/catalog/BaseRequest.java f3376b0 
>   catalog/src/main/java/org/apache/atlas/catalog/BaseResourceProvider.java 
> 517eaf6 
>   catalog/src/main/java/org/apache/atlas/catalog/DefaultTypeSystem.java 
> f71c061 
>   
> catalog/src/main/java/org/apache/atlas/catalog/EntityTagResourceProvider.java 
> dc4ab0d 
>   catalog/src/main/java/org/apache/atlas/catalog/ResourceProvider.java 
> 4c4319c 
>   
> catalog/src/main/java/org/apache/atlas/catalog/TaxonomyResourceProvider.java 
> 7a46f5d 
>   catalog/src/main/java/org/apache/atlas/catalog/TermResourceProvider.java 
> 431b06d 
>   catalog/src/main/java/org/apache/atlas/catalog/projection/BaseRelation.java 
> PRE-CREATION 
>   
> catalog/src/main/java/org/apache/atlas/catalog/projection/GenericRelation.java
>  5f59bea 
>   catalog/src/main/java/org/apache/atlas/catalog/projection/TagRelation.java 
> a5e15c6 
>   
> catalog/src/main/java/org/apache/atlas/catalog/projection/TraitRelation.java 
> 5f11474 
>   catalog/src/main/java/org/apache/atlas/catalog/query/AtlasEntityQuery.java 
> e2bc597 
>   
> catalog/src/main/java/org/apache/atlas/catalog/query/AtlasEntityTagQuery.java 
> 013bb8a 
>   
> catalog/src/main/java/org/apache/atlas/catalog/query/AtlasTaxonomyQuery.java 
> 787f734 
>   catalog/src/main/java/org/apache/atlas/catalog/query/AtlasTermQuery.java 
> 0065101 
>   catalog/src/main/java/org/apache/atlas/catalog/query/BaseQuery.java c2eabf7 
>   
> catalog/src/test/java/org/apache/atlas/catalog/EntityTagResourceProviderTest.java
>  a95b966 
>   
> catalog/src/test/java/org/apache/atlas/catalog/TaxonomyResourceProviderTest.java
>  9cf3d12 
>   
> catalog/src/test/java/org/apache/atlas/catalog/TermResourceProviderTest.java 
> 34222ca 
>   
> catalog/src/test/java/org/apache/atlas/catalog/projection/TagRelationTest.java
>  PRE-CREATION 
>   
> catalog/src/test/java/org/apache/atlas/catalog/query/AtlasEntityQueryTest.java
>  838d4c1 
>   server-api/src/main/java/org/apache/atlas/services/MetadataService.java 
> 6bca3df 
>   webapp/src/main/java/org/apache/atlas/web/resources/BaseService.java 
> 3982df8 
>   webapp/src/main/java/org/apache/atlas/web/resources/EntityService.java 
> 0e3f4c4 
>   webapp/src/main/java/org/apache/atlas/web/resources/TaxonomyService.java 
> ccd0b62 
> 
> Diff: https://reviews.apache.org/r/47898/diff/
> 
> 
> Testing
> -------
> 
> - Added new unit tests
> - Ran all existing unit tests
> - Manual functional testing of all new functionality
> 
> 
> Thanks,
> 
> John Speidel
> 
>

Reply via email to