Re: Review Request 48565: ATLAS-856: lazy-load type cache

2016-06-21 Thread Shwetha GS

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


Ship it!




Ship It!

- Shwetha GS


On June 22, 2016, 2:28 a.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 22, 2016, 2:28 a.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: Implemented StoreBackedTypeCache, an extension of DefaultTypeCache 
> which loads the requested type from the type store if it is not found in the 
> cache, and adds it to the cache if it's found in the store.  Any attribute 
> and super types that are required by the requested type are also loaded from 
> the store if they are not already in the cache.
> 
> 
> Diffs
> -
> 
>   common/src/main/java/org/apache/atlas/ApplicationProperties.java 
> 741e1a6ad5e10315a9a565d69f9838c438c2e18e 
>   repository/src/main/java/org/apache/atlas/RepositoryMetadataModule.java 
> c4c767827014a265471250306f35316a0b4ed67f 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCache.java
>  PRE-CREATION 
>   
> repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java
>  37e7b66e073df294f5e38c79ba33c7ffcb394a8e 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  dd530a755231c3d487d9f5104cb0aa7119863266 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheConfigurationTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTestModule.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/service/StoreBackedTypeCacheMetadataServiceTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/services/DefaultMetadataServiceMockTest.java
>  effee2a43d8c1e1369b52f1c3899cb882ea52aa1 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
> 14f1968c2dd6765793c1c43e3ea1ed5f3a9c8a42 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProvider.java
>  700bda6463e039b8f6ad2ac75840f9e637a883b0 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/ITypeCacheProvider.java
>  55e9ddc463c748d3cd631d11860235dbe1a92714 
>   typesystem/src/test/java/org/apache/atlas/ApplicationPropertiesTest.java 
> 06796420361573d41ca084f4c45d7a5f17cf4ff0 
>   
> typesystem/src/test/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProviderTest.java
>  c426d50f52dfd99835d9fcf1c6f95841ba4b5494 
>   webapp/src/test/java/org/apache/atlas/web/listeners/TestModule.java 
> 9cb76d3d1660a0c806296c41d8108acc8925d3d0 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache

2016-06-21 Thread David Kantor

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

(Updated June 22, 2016, 2:28 a.m.)


Review request for atlas.


Changes
---

Rebased with trunk, addressed Shwetha's comments.


Bugs: ATLAS-856
https://issues.apache.org/jira/browse/ATLAS-856


Repository: atlas


Description
---

ATLAS-856: Implemented StoreBackedTypeCache, an extension of DefaultTypeCache 
which loads the requested type from the type store if it is not found in the 
cache, and adds it to the cache if it's found in the store.  Any attribute and 
super types that are required by the requested type are also loaded from the 
store if they are not already in the cache.


Diffs (updated)
-

  common/src/main/java/org/apache/atlas/ApplicationProperties.java 
741e1a6ad5e10315a9a565d69f9838c438c2e18e 
  repository/src/main/java/org/apache/atlas/RepositoryMetadataModule.java 
c4c767827014a265471250306f35316a0b4ed67f 
  
repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
 5ed9e02eb85ec25b63540cab40d148914d410786 
  
repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java 
790c4b31c37e51289585f6f891366a8d8c86b168 
  
repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCache.java
 PRE-CREATION 
  
repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java 
37e7b66e073df294f5e38c79ba33c7ffcb394a8e 
  
repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
 dd530a755231c3d487d9f5104cb0aa7119863266 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheConfigurationTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTestModule.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/service/StoreBackedTypeCacheMetadataServiceTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/services/DefaultMetadataServiceMockTest.java
 effee2a43d8c1e1369b52f1c3899cb882ea52aa1 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
14f1968c2dd6765793c1c43e3ea1ed5f3a9c8a42 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProvider.java
 700bda6463e039b8f6ad2ac75840f9e637a883b0 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/ITypeCacheProvider.java
 55e9ddc463c748d3cd631d11860235dbe1a92714 
  typesystem/src/test/java/org/apache/atlas/ApplicationPropertiesTest.java 
06796420361573d41ca084f4c45d7a5f17cf4ff0 
  
typesystem/src/test/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProviderTest.java
 c426d50f52dfd99835d9fcf1c6f95841ba4b5494 
  webapp/src/test/java/org/apache/atlas/web/listeners/TestModule.java 
9cb76d3d1660a0c806296c41d8108acc8925d3d0 

Diff: https://reviews.apache.org/r/48565/diff/


Testing
---

Ran all unit and integration tests with no regressions.


Thanks,

David Kantor



Re: Review Request 48565: ATLAS-856: lazy-load type cache

2016-06-21 Thread David Kantor


> On June 21, 2016, 8:49 a.m., Shwetha GS wrote:
> > repository/src/test/resources/org/apache/atlas/repository/typestore/atlas-application.properties,
> >  line 2
> > 
> >
> > is there any way we can avoid having a copy of 
> > atlas-application.properties here?

I'm not sure how to avoid this given the current Atlas configuration mechanism. 
 I have added tests that depend on StoreBackedTypeCache being configured as the 
TypeCache implementation class in atlas-application.properties.  Other than 
using the atlas.conf system property to point ApplicationProperties at a 
directory which contains a properties file that has the setting needed for the 
tests, I don't see another way of overriding the default value of the 
atlas.TypeCache.impl property.  I suppose we could enhance 
ApplicationProperties to support overriding the configured value with a system 
property of the same name.  Is your main concern to avoid the proliferation of 
test versions of atlas-application.properties?


- David


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


On June 20, 2016, 9:57 p.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 20, 2016, 9:57 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: Implemented StoreBackedTypeCache, an extension of DefaultTypeCache 
> which loads the requested type from the type store if it is not found in the 
> cache, and adds it to the cache if it's found in the store.  Any attribute 
> and super types that are required by the requested type are also loaded from 
> the store if they are not already in the cache.
> 
> 
> Diffs
> -
> 
>   repository/src/main/java/org/apache/atlas/RepositoryMetadataModule.java 
> c4c767827014a265471250306f35316a0b4ed67f 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCache.java
>  PRE-CREATION 
>   
> repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java
>  d9e6cb9e9243c4d53808089efeaaaf1329561df3 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  961442bbcaff86b472a876e6c348aa9e65c1efca 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheConfigurationTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTestModule.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/service/StoreBackedTypeCacheMetadataServiceTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/services/DefaultMetadataServiceMockTest.java
>  effee2a43d8c1e1369b52f1c3899cb882ea52aa1 
>   
> repository/src/test/resources/org/apache/atlas/repository/typestore/atlas-application.properties
>  PRE-CREATION 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
> 14f1968c2dd6765793c1c43e3ea1ed5f3a9c8a42 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProvider.java
>  700bda6463e039b8f6ad2ac75840f9e637a883b0 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/ITypeCacheProvider.java
>  55e9ddc463c748d3cd631d11860235dbe1a92714 
>   
> typesystem/src/test/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProviderTest.java
>  c426d50f52dfd99835d9fcf1c6f95841ba4b5494 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache

2016-06-20 Thread David Kantor

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

(Updated June 20, 2016, 9:57 p.m.)


Review request for atlas.


Bugs: ATLAS-856
https://issues.apache.org/jira/browse/ATLAS-856


Repository: atlas


Description (updated)
---

ATLAS-856: Implemented StoreBackedTypeCache, an extension of DefaultTypeCache 
which loads the requested type from the type store if it is not found in the 
cache, and adds it to the cache if it's found in the store.  Any attribute and 
super types that are required by the requested type are also loaded from the 
store if they are not already in the cache.


Diffs
-

  repository/src/main/java/org/apache/atlas/RepositoryMetadataModule.java 
c4c767827014a265471250306f35316a0b4ed67f 
  
repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
 5ed9e02eb85ec25b63540cab40d148914d410786 
  
repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java 
790c4b31c37e51289585f6f891366a8d8c86b168 
  
repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCache.java
 PRE-CREATION 
  
repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java 
d9e6cb9e9243c4d53808089efeaaaf1329561df3 
  
repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
 961442bbcaff86b472a876e6c348aa9e65c1efca 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheConfigurationTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTestModule.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/service/StoreBackedTypeCacheMetadataServiceTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/services/DefaultMetadataServiceMockTest.java
 effee2a43d8c1e1369b52f1c3899cb882ea52aa1 
  
repository/src/test/resources/org/apache/atlas/repository/typestore/atlas-application.properties
 PRE-CREATION 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
14f1968c2dd6765793c1c43e3ea1ed5f3a9c8a42 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProvider.java
 700bda6463e039b8f6ad2ac75840f9e637a883b0 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/ITypeCacheProvider.java
 55e9ddc463c748d3cd631d11860235dbe1a92714 
  
typesystem/src/test/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProviderTest.java
 c426d50f52dfd99835d9fcf1c6f95841ba4b5494 

Diff: https://reviews.apache.org/r/48565/diff/


Testing
---

Ran all unit and integration tests with no regressions.


Thanks,

David Kantor



Re: Review Request 48565: ATLAS-856: lazy-load type cache

2016-06-20 Thread David Kantor

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

(Updated June 20, 2016, 9:55 p.m.)


Review request for atlas.


Changes
---

* Renamed ITypeCacheProvider to TypeCache, along with associated class and 
properties.  TypeCache is *not* a Guice provider so it was misleading/incorrect 
to name the class as a provider.
* Configure Guice to instantiate TypeCache implementation - removed TypeCache 
instantiation code from TypeSystem.
* Added test cases to verify StoreBackedTypeCache can be successfully 
instantiated and injected by Guice using Atlas properties file.
* Addressed Shwetha's review comments.


Summary (updated)
-

ATLAS-856: lazy-load type cache


Bugs: ATLAS-856
https://issues.apache.org/jira/browse/ATLAS-856


Repository: atlas


Description
---

ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
type from the type store if it is not found in the cache,  and adds it to the 
cache if it's found in the store.  Any attribute and super types that are 
required by the requested type are also loaded from the store if they are not 
already in the cache.


Diffs (updated)
-

  repository/src/main/java/org/apache/atlas/RepositoryMetadataModule.java 
c4c767827014a265471250306f35316a0b4ed67f 
  
repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
 5ed9e02eb85ec25b63540cab40d148914d410786 
  
repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java 
790c4b31c37e51289585f6f891366a8d8c86b168 
  
repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCache.java
 PRE-CREATION 
  
repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java 
d9e6cb9e9243c4d53808089efeaaaf1329561df3 
  
repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
 961442bbcaff86b472a876e6c348aa9e65c1efca 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheConfigurationTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheTestModule.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/service/StoreBackedTypeCacheMetadataServiceTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/services/DefaultMetadataServiceMockTest.java
 effee2a43d8c1e1369b52f1c3899cb882ea52aa1 
  
repository/src/test/resources/org/apache/atlas/repository/typestore/atlas-application.properties
 PRE-CREATION 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
14f1968c2dd6765793c1c43e3ea1ed5f3a9c8a42 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProvider.java
 700bda6463e039b8f6ad2ac75840f9e637a883b0 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/cache/ITypeCacheProvider.java
 55e9ddc463c748d3cd631d11860235dbe1a92714 
  
typesystem/src/test/java/org/apache/atlas/typesystem/types/cache/DefaultTypeCacheProviderTest.java
 c426d50f52dfd99835d9fcf1c6f95841ba4b5494 

Diff: https://reviews.apache.org/r/48565/diff/


Testing
---

Ran all unit and integration tests with no regressions.


Thanks,

David Kantor



Re: Review Request 48565: ATLAS-856: lazy-load type cache provider

2016-06-17 Thread Shwetha GS

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




repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
 (line 205)


this should have handled NOT_FOUND. So, throwing exception from 
getTypeFromCacheOrStore() will work in all cases


- Shwetha GS


On June 15, 2016, 3:05 p.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 15, 2016, 3:05 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
> type from the type store if it is not found in the cache,  and adds it to the 
> cache if it's found in the store.  Any attribute and super types that are 
> required by the requested type are also loaded from the store if they are not 
> already in the cache.
> 
> 
> Diffs
> -
> 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  961442bbcaff86b472a876e6c348aa9e65c1efca 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProviderTest.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache provider

2016-06-17 Thread Shwetha GS

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



One comment, looks good otherwise


repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
 (line 166)


The only return type valid here is NOT_FOUND. Lets throw exception in this 
case and make the function return void instead


- Shwetha GS


On June 15, 2016, 3:05 p.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 15, 2016, 3:05 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
> type from the type store if it is not found in the cache,  and adds it to the 
> cache if it's found in the store.  Any attribute and super types that are 
> required by the requested type are also loaded from the store if they are not 
> already in the cache.
> 
> 
> Diffs
> -
> 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  961442bbcaff86b472a876e6c348aa9e65c1efca 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProviderTest.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache provider

2016-06-15 Thread venkata madugundu

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


Ship it!




Ship It!

- venkata madugundu


On June 15, 2016, 3:05 p.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 15, 2016, 3:05 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
> type from the type store if it is not found in the cache,  and adds it to the 
> cache if it's found in the store.  Any attribute and super types that are 
> required by the requested type are also loaded from the store if they are not 
> already in the cache.
> 
> 
> Diffs
> -
> 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  961442bbcaff86b472a876e6c348aa9e65c1efca 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProviderTest.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache provider

2016-06-15 Thread venkata madugundu

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



The changes related to handling 'ITypeCacheProvider::has(..) look good to me.

- venkata madugundu


On June 15, 2016, 3:05 p.m., David Kantor wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/48565/
> ---
> 
> (Updated June 15, 2016, 3:05 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-856
> https://issues.apache.org/jira/browse/ATLAS-856
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
> type from the type store if it is not found in the cache,  and adds it to the 
> cache if it's found in the store.  Any attribute and super types that are 
> required by the requested type are also loaded from the store if they are not 
> already in the cache.
> 
> 
> Diffs
> -
> 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
>  5ed9e02eb85ec25b63540cab40d148914d410786 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java
>  790c4b31c37e51289585f6f891366a8d8c86b168 
>   
> repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
>  961442bbcaff86b472a876e6c348aa9e65c1efca 
>   
> repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProviderTest.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/48565/diff/
> 
> 
> Testing
> ---
> 
> Ran all unit and integration tests with no regressions.
> 
> 
> Thanks,
> 
> David Kantor
> 
>



Re: Review Request 48565: ATLAS-856: lazy-load type cache provider

2016-06-15 Thread David Kantor

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

(Updated June 15, 2016, 3:05 p.m.)


Review request for atlas.


Bugs: ATLAS-856
https://issues.apache.org/jira/browse/ATLAS-856


Repository: atlas


Description
---

ATLAS-856: An extension of DefaultTypeCacheProvider which loads the requested 
type from the type store if it is not found in the cache,  and adds it to the 
cache if it's found in the store.  Any attribute and super types that are 
required by the requested type are also loaded from the store if they are not 
already in the cache.


Diffs
-

  
repository/src/main/java/org/apache/atlas/repository/typestore/GraphBackedTypeStore.java
 5ed9e02eb85ec25b63540cab40d148914d410786 
  
repository/src/main/java/org/apache/atlas/repository/typestore/ITypeStore.java 
790c4b31c37e51289585f6f891366a8d8c86b168 
  
repository/src/main/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProvider.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/typestore/GraphBackedTypeStoreTest.java
 961442bbcaff86b472a876e6c348aa9e65c1efca 
  
repository/src/test/java/org/apache/atlas/repository/typestore/StoreBackedTypeCacheProviderTest.java
 PRE-CREATION 

Diff: https://reviews.apache.org/r/48565/diff/


Testing
---

Ran all unit and integration tests with no regressions.


Thanks,

David Kantor