Build failed in Jenkins: Atlas-master-IntegrationTests #104

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2100: UserProfile & SavedSearch API implementation

[madhan] ATLAS-2141: edit/disassociate tag results in NPE

--
[...truncated 442.47 KB...]
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/MetricfzOLxq8wxz HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_db_v1 HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_column_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_table_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_process_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "POST /api/atlas/types HTTP/1.1" 400 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/tableType HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/serdeType HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/classification HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/pii HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/phi HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/pci HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/sox HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/sec HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/finance HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/FacthrOgbEi6GU HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/ETLn9z8wthzcV HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/DimensionxuOH1I0p72 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/MetriciLPM7N4kI8 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_db_v1 HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_column_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_table_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_process_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "POST /api/atlas/types HTTP/1.1" 400 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:14 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 409 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/enumdef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/enumdef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/structdef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/structdef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/classificationdef/name/blah HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/classificationdef/guid/blah HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/entitydef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/entitydef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:15 +] "GET 
/api/atlas/v2/types/typedefs/?supertype=ANAhkYY8nCi&type=CLASS HTTP/1.1" 200 - 
"-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:23:43:16 +] "GET 
/api/atlas/v2/types/typedefs/?notsupertype=BdCXNtv22Et&sup

Build failed in Jenkins: Atlas-master-UnitTests #81

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2100: UserProfile & SavedSearch API implementation

[madhan] ATLAS-2141: edit/disassociate tag results in NPE

--
[...truncated 261.79 KB...]
Running org.apache.atlas.services.MetricsServiceTest
Running org.apache.atlas.repository.typestore.StoreBackedTypeCacheTest
Running org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryHATest
Running org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryTest
Running org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1Test
Running org.apache.atlas.repository.audit.InMemoryAuditRepositoryTest
Running org.apache.atlas.repository.graph.GraphBackedSearchIndexerTest
Running org.apache.atlas.repository.impexp.AtlasImportRequestTest
Running org.apache.atlas.repository.graph.GraphBackedSearchIndexerMockTest
Running 
org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1BulkImportPercentTest
Running org.apache.atlas.repository.impexp.ImportTransformsTest
Running org.apache.atlas.repository.graph.AbstractGremlinQueryOptimizerTest
Running org.apache.atlas.repository.graph.GraphBackedRepositoryHardDeleteTest
Running org.apache.atlas.service.DefaultMetadataServiceTest
Running org.apache.atlas.repository.store.graph.v1.AtlasEntityDefStoreV1Test
Running org.apache.atlas.repository.store.graph.v1.InverseReferenceUpdateV1Test
Running org.apache.atlas.repository.impexp.ExportServiceTest
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreSoftDeleteV1Test
Running org.apache.atlas.repository.impexp.ZipSinkTest
Running org.apache.atlas.repository.graph.ReverseReferenceUpdateSoftDeleteTest
Running org.apache.atlas.repository.BaseTest
Running org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStoreTest
Running org.apache.atlas.repository.graph.Gremlin3QueryOptimizerTest
Running org.apache.atlas.repository.store.graph.v1.SoftDeleteHandlerV1Test
Running org.apache.atlas.repository.impexp.TypeAttributeDifferenceTest
Running org.apache.atlas.repository.graph.GraphHelperTest
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipDefStoreV1Test
Running org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreV1Test
Running org.apache.atlas.repository.impexp.ImportServiceTest
Running org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1Test
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreHardDeleteV1Test
Running org.apache.atlas.repository.store.graph.v1.AtlasDeleteHandlerV1Test
Running 
org.apache.atlas.repository.store.graph.v1.InverseReferenceUpdateHardDeleteV1Test
Running org.apache.atlas.repository.typestore.GraphBackedTypeStoreTest
Running org.apache.atlas.repository.impexp.ZipSourceTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.45 sec - in 
org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1BulkImportPercentTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.763 sec - in 
org.apache.atlas.utils.ObjectUpdateSynchronizerTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.713 sec - in 
org.apache.atlas.repository.store.graph.v1.InverseReferenceUpdateV1Test
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.146 sec - in 
org.apache.atlas.repository.audit.InMemoryAuditRepositoryTest
Running org.apache.atlas.repository.impexp.UniqueListTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.488 sec - in 
org.apache.atlas.repository.graph.TestIntSequence
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.93 sec - in 
org.apache.atlas.repository.graph.AbstractGremlinQueryOptimizerTest
Running org.apache.atlas.repository.impexp.ImportTransformerJSONTest
Running org.apache.atlas.TestUtils
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.361 sec - in 
org.apache.atlas.BaseRepositoryTest
Running org.apache.atlas.repository.impexp.ImportTransformerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.592 sec - in 
org.apache.atlas.repository.impexp.AtlasImportRequestTest
Running org.apache.atlas.query.BaseGremlinTest
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.21 sec - in 
org.apache.atlas.repository.graph.Gremlin2QueryOptimizerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.23 sec - in 
org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryHATest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.855 sec - in 
org.apache.atlas.repository.impexp.TypeAttributeDifferenceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.448 sec - in 
org.apache.atlas.repository.graph.GraphBackedSearchIndexerMockTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.696 sec - in 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreV1Test
Tests run: 0, Failures: 0, Errors: 0, Skipped:

[jira] [Assigned] (ATLAS-2140) throwing overly generic exception type

2017-09-17 Thread Madhan Neethiraj (JIRA)

 [ 
https://issues.apache.org/jira/browse/ATLAS-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj reassigned ATLAS-2140:
---

Assignee: Zsombor Gegesy

> throwing overly generic exception type
> --
>
> Key: ATLAS-2140
> URL: https://issues.apache.org/jira/browse/ATLAS-2140
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.8-incubating
>Reporter: Zsombor Gegesy
>Assignee: Zsombor Gegesy
>Priority: Minor
>  Labels: code-cleanup
> Fix For: 0.9-incubating, 0.8.2
>
> Attachments: 
> 0001-ATLAS-2140-Throwing-overly-generic-exceptions-or-unn.patch
>
>
> In various places in the codebase exceptions are declared unnecessarily 
> broadly or without actually throwing it. Which could cause confusion in the 
> caller, making it harder to handling it, and recovering from this.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Jenkins build is back to normal : Atlas-0.8-UnitTests #61

2017-09-17 Thread Apache Jenkins Server
See 




[jira] [Commented] (ATLAS-2140) throwing overly generic exception type

2017-09-17 Thread Zsombor Gegesy (JIRA)

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

Zsombor Gegesy commented on ATLAS-2140:
---

Welcome ! Could you assign the ticket to me? 

> throwing overly generic exception type
> --
>
> Key: ATLAS-2140
> URL: https://issues.apache.org/jira/browse/ATLAS-2140
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.8-incubating
>Reporter: Zsombor Gegesy
>Priority: Minor
>  Labels: code-cleanup
> Fix For: 0.9-incubating, 0.8.2
>
> Attachments: 
> 0001-ATLAS-2140-Throwing-overly-generic-exceptions-or-unn.patch
>
>
> In various places in the codebase exceptions are declared unnecessarily 
> broadly or without actually throwing it. Which could cause confusion in the 
> caller, making it harder to handling it, and recovering from this.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Build failed in Jenkins: Atlas-0.8-IntegrationTests #63

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2141: edit/disassociate tag results in NPE

[madhan] ATLAS-2140: Throwing overly generic exceptions, or unnecessarily

--
[...truncated 491.17 KB...]
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "PUT /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "GET 
/api/atlas/v2/types/typedefs/?type=ENTITY HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "POST /api/atlas/types HTTP/1.1" 409 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "GET 
/api/atlas/v2/types/typedef/name/class_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "GET 
/api/atlas/v2/types/typedef/name/secure_trait HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:55 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET 
/api/atlas/v2/types/typedef/name/pii_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET 
/api/atlas/v2/types/typedef/name/ssn_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET 
/api/atlas/v2/types/typedef/name/salary_trait HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET 
/api/atlas/v2/types/typedef/name/sox_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET /api/atlas/types?type=TRAIT 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "PUT /api/atlas/types HTTP/1.1" 200 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET /api/atlas/types/OrgtsfBQN6 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "GET 
/api/atlas/v2/types/typedef/name/AQpD6S4248m HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:56 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "GET 
/api/atlas/v2/types/typedef/name/A1FGvL605orQ HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "GET 
/api/atlas/v2/types/typedef/name/BD7EJh13XJT HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "GET 
/api/atlas/v2/types/typedef/name/CUztBq2gsbF HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "GET 
/api/atlas/types?type=CLASS&supertype=AQpD6S4248m¬supertype=BD7EJh13XJT 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:49:57 +] "GET /api/atlas/types/blah HTTP/1.1" 
404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/tableType HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/serdeType HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/classification HTTP/1.1" 200 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/pii HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/phi HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/pci HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/sox HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/sec HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/finance HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:19:50:01 +] "GET 
/api/atlas/v2/types/typedef/name/Fact

Build failed in Jenkins: Atlas-master-IntegrationTests #103

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2140: Throwing overly generic exceptions, or unnecessarily

--
[...truncated 441.88 KB...]
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/sox HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/sec HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/finance HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/FactL4mNbhjs6v HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/ETLMRuzOg7QVz HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/DimensioniyftNbgSWP HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/MetricLvCdForSiM HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_db_v1 HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_column_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_table_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/typedef/name/hive_process_v1 HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "POST /api/atlas/types HTTP/1.1" 400 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 409 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/enumdef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/enumdef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/structdef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/structdef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/classificationdef/name/blah HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/classificationdef/guid/blah HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/entitydef/name/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "GET 
/api/atlas/v2/types/entitydef/guid/blah HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:14 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "GET 
/api/atlas/v2/types/typedefs/?supertype=AAdqLvm8hBK&type=CLASS HTTP/1.1" 200 - 
"-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "GET 
/api/atlas/v2/types/typedefs/?notsupertype=BgNZDLGReDB&supertype=AAdqLvm8hBK&type=CLASS
 HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "PUT /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "GET 
/api/atlas/v2/types/typedefs/?type=ENTITY HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:15 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "POST /api/atlas/types HTTP/1.1" 409 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "GET /api/atlas/types/blah HTTP/1.1" 
404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "GET 
/api/atlas/v2/types/typedef/name/class_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "GET 
/api/atlas/v2/types/typedef/name/secure_trait HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "GET 
/api/atlas/v2/types/typedef/name/pii_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:18:43:16 +] "GET 
/api/atlas/v2/types/typedef/name/ssn_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - 

Build failed in Jenkins: Atlas-master-UnitTests #80

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2140: Throwing overly generic exceptions, or unnecessarily

--
[...truncated 261.47 KB...]
Running org.apache.atlas.repository.graph.TestIntSequence
Running org.apache.atlas.repository.graph.GraphBackedSearchIndexerTest
Running org.apache.atlas.services.EntityDiscoveryServiceTest
Running org.apache.atlas.utils.ObjectUpdateSynchronizerTest
Running org.apache.atlas.repository.graph.ReverseReferenceUpdateHardDeleteTest
Running org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStoreTest
Running org.apache.atlas.repository.graph.GraphBackedMetadataRepositoryTest
Running org.apache.atlas.repository.graph.Gremlin3QueryOptimizerTest
Running org.apache.atlas.repository.store.graph.v1.SoftDeleteHandlerV1Test
Running org.apache.atlas.repository.graph.ReverseReferenceUpdateSoftDeleteTest
Running org.apache.atlas.services.MetricsServiceTest
Running org.apache.atlas.repository.graph.GraphBackedSearchIndexerMockTest
Running org.apache.atlas.repository.graph.GraphBackedRepositoryHardDeleteTest
Running 
org.apache.atlas.repository.store.graph.v1.InverseReferenceUpdateHardDeleteV1Test
Running org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryHATest
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreHardDeleteV1Test
Running 
org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1BulkImportPercentTest
Running org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1Test
Running org.apache.atlas.repository.typestore.StoreBackedTypeCacheTest
Running org.apache.atlas.repository.store.graph.v1.InverseReferenceUpdateV1Test
Running org.apache.atlas.repository.BaseTest
Running org.apache.atlas.repository.audit.InMemoryAuditRepositoryTest
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreSoftDeleteV1Test
Running org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1Test
Running org.apache.atlas.repository.impexp.ExportServiceTest
Running org.apache.atlas.repository.impexp.ZipSourceTest
Running org.apache.atlas.repository.impexp.AtlasImportRequestTest
Running org.apache.atlas.repository.store.graph.v1.AtlasEntityDefStoreV1Test
Running 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipDefStoreV1Test
Running org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryTest
Running org.apache.atlas.repository.impexp.UniqueListTest
Running org.apache.atlas.repository.typestore.GraphBackedTypeStoreTest
Running org.apache.atlas.repository.impexp.TypeAttributeDifferenceTest
Running org.apache.atlas.repository.impexp.ImportServiceTest
Running org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreV1Test
Running org.apache.atlas.repository.impexp.ZipSinkTest
Running org.apache.atlas.repository.impexp.ImportTransformsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.978 sec - in 
org.apache.atlas.repository.graph.TestIntSequence
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.462 sec - in 
org.apache.atlas.BaseRepositoryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.535 sec - in 
org.apache.atlas.repository.graph.GraphBackedSearchIndexerMockTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.93 sec - in 
org.apache.atlas.repository.impexp.UniqueListTest
Running org.apache.atlas.repository.impexp.ImportTransformerJSONTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.259 sec - in 
org.apache.atlas.repository.store.graph.v1.AtlasDeleteHandlerV1Test
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.446 sec - in 
org.apache.atlas.repository.impexp.TypeAttributeDifferenceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.692 sec - in 
org.apache.atlas.repository.audit.HBaseBasedAuditRepositoryHATest
Running org.apache.atlas.query.BaseGremlinTest
Running org.apache.atlas.repository.impexp.ImportTransformerTest
Running org.apache.atlas.TestUtils
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.39 sec - in 
org.apache.atlas.repository.graph.AbstractGremlinQueryOptimizerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.5 sec - in 
org.apache.atlas.repository.audit.InMemoryAuditRepositoryTest
Running org.apache.atlas.query.LineageQueryTest
Running org.apache.atlas.query.QueryProcessorTest
Running org.apache.atlas.query.LexerTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.102 sec - in 
org.apache.atlas.repository.store.graph.v1.AtlasRelationshipStoreV1Test
Running org.apache.atlas.query.GremlinTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.245 sec - in 
org.apache.atlas.repository.impexp.ZipSinkTest
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 33.452 sec - 
in org.apache.atlas.repository.graph.Gremlin3QueryOptimizerTest
Running org.apache.atlas.query.P

[jira] [Commented] (ATLAS-2141) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Ashutosh Mestry (JIRA)

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

Ashutosh Mestry commented on ATLAS-2141:


[~madhan.neethiraj] Thanks for taking care of this!

+1 for the patch.

> Regression : Disassociating tag from Entity and Editing tag attributes 
> associated to an entity throw NPE
> 
>
> Key: ATLAS-2141
> URL: https://issues.apache.org/jira/browse/ATLAS-2141
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.8.2
>Reporter: Sharmadha Sainath
>Assignee: Madhan Neethiraj
> Fix For: 0.8.2
>
> Attachments: ATLAS-2141.patch, NPE_during_tag_delete.txt, 
> NPE_during_tag_edit.txt
>
>
> Editing tag attribute value associated to an entity throws 500 Internal 
> server error with NPE and with Error Notification "Tag  could not be 
> added".
> Disassociating a tag from an entity also throws 500 Internal server error 
> with NPE , and with Error Notification "Tag  could not be deleted". 
> Tag addition works fine.
> This is a regression caused after 
> [ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].
> Attached the exception stack trace seen for both cases.
> CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Re: Review Request 62366: ATLAS-2140 - removing unnecessary exceptions

2017-09-17 Thread Madhan Neethiraj

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


Ship it!




Ship It!

- Madhan Neethiraj


On Sept. 16, 2017, 2:49 p.m., Zsombor Gegesy wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62366/
> ---
> 
> (Updated Sept. 16, 2017, 2:49 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-2140
> https://issues.apache.org/jira/browse/ATLAS-2140
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> In various places in the codebase exceptions are declared unnecessarily 
> broadly or without actually throwing it. Which could cause confusion in the 
> caller, making it harder to handling it, and recovering from this.
> 
> 
> Diffs
> -
> 
>   
> addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/bridge/FalconBridge.java
>  349da66 
>   
> addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/hook/FalconHook.java
>  3b384f8 
>   
> addons/falcon-bridge/src/main/java/org/apache/atlas/falcon/publisher/FalconEventPublisher.java
>  ea81226 
>   
> addons/storm-bridge/src/main/java/org/apache/atlas/storm/hook/StormAtlasHook.java
>  5193832 
>   
> addons/storm-bridge/src/main/java/org/apache/atlas/storm/hook/StormTopologyUtil.java
>  d999a6a 
>   
> plugin-classloader/src/main/java/org/apache/atlas/plugin/classloader/AtlasPluginClassLoader.java
>  d7ec65d 
>   
> plugin-classloader/src/main/java/org/apache/atlas/plugin/classloader/AtlasPluginClassLoaderUtil.java
>  dfdad88 
> 
> 
> Diff: https://reviews.apache.org/r/62366/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Zsombor Gegesy
> 
>



[jira] [Updated] (ATLAS-2141) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Madhan Neethiraj (JIRA)

 [ 
https://issues.apache.org/jira/browse/ATLAS-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj updated ATLAS-2141:

Attachment: ATLAS-2141.patch

> Regression : Disassociating tag from Entity and Editing tag attributes 
> associated to an entity throw NPE
> 
>
> Key: ATLAS-2141
> URL: https://issues.apache.org/jira/browse/ATLAS-2141
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.9-incubating
>Reporter: Sharmadha Sainath
>Assignee: Madhan Neethiraj
> Attachments: ATLAS-2141.patch, NPE_during_tag_delete.txt, 
> NPE_during_tag_edit.txt
>
>
> Editing tag attribute value associated to an entity throws 500 Internal 
> server error with NPE and with Error Notification "Tag  could not be 
> added".
> Disassociating a tag from an entity also throws 500 Internal server error 
> with NPE , and with Error Notification "Tag  could not be deleted". 
> Tag addition works fine.
> This is a regression caused after 
> [ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].
> Attached the exception stack trace seen for both cases.
> CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (ATLAS-2141) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Madhan Neethiraj (JIRA)

 [ 
https://issues.apache.org/jira/browse/ATLAS-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj reassigned ATLAS-2141:
---

Assignee: Madhan Neethiraj

> Regression : Disassociating tag from Entity and Editing tag attributes 
> associated to an entity throw NPE
> 
>
> Key: ATLAS-2141
> URL: https://issues.apache.org/jira/browse/ATLAS-2141
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.9-incubating
>Reporter: Sharmadha Sainath
>Assignee: Madhan Neethiraj
> Attachments: NPE_during_tag_delete.txt, NPE_during_tag_edit.txt
>
>
> Editing tag attribute value associated to an entity throws 500 Internal 
> server error with NPE and with Error Notification "Tag  could not be 
> added".
> Disassociating a tag from an entity also throws 500 Internal server error 
> with NPE , and with Error Notification "Tag  could not be deleted". 
> Tag addition works fine.
> This is a regression caused after 
> [ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].
> Attached the exception stack trace seen for both cases.
> CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (ATLAS-2142) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Sharmadha Sainath (JIRA)

 [ 
https://issues.apache.org/jira/browse/ATLAS-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sharmadha Sainath resolved ATLAS-2142.
--
Resolution: Duplicate

Duplicate of [ATLAS-2141|https://issues.apache.org/jira/browse/ATLAS-2142] . 
Filed twice by mistake when Apache was down for some time.

> Regression : Disassociating tag from Entity and Editing tag attributes 
> associated to an entity throw NPE
> 
>
> Key: ATLAS-2142
> URL: https://issues.apache.org/jira/browse/ATLAS-2142
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.9-incubating
>Reporter: Sharmadha Sainath
>
> Editing tag attribute value associated to an entity throws 500 Internal 
> server error with NPE and with Error Notification "Tag  could not be 
> added".
> Disassociating a tag from an entity also throws 500 Internal server error 
> with NPE , and with Error Notification "Tag  could not be deleted". 
> Tag addition works fine.
> This is a regression caused after 
> [ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].
> Attached the exception stack trace seen for both cases.
> CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (ATLAS-2142) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Sharmadha Sainath (JIRA)
Sharmadha Sainath created ATLAS-2142:


 Summary: Regression : Disassociating tag from Entity and Editing 
tag attributes associated to an entity throw NPE
 Key: ATLAS-2142
 URL: https://issues.apache.org/jira/browse/ATLAS-2142
 Project: Atlas
  Issue Type: Bug
  Components:  atlas-core
Affects Versions: 0.9-incubating
Reporter: Sharmadha Sainath


Editing tag attribute value associated to an entity throws 500 Internal server 
error with NPE and with Error Notification "Tag  could not be added".

Disassociating a tag from an entity also throws 500 Internal server error with 
NPE , and with Error Notification "Tag  could not be deleted". 

Tag addition works fine.

This is a regression caused after 
[ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].

Attached the exception stack trace seen for both cases.

CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (ATLAS-2141) Regression : Disassociating tag from Entity and Editing tag attributes associated to an entity throw NPE

2017-09-17 Thread Sharmadha Sainath (JIRA)
Sharmadha Sainath created ATLAS-2141:


 Summary: Regression : Disassociating tag from Entity and Editing 
tag attributes associated to an entity throw NPE
 Key: ATLAS-2141
 URL: https://issues.apache.org/jira/browse/ATLAS-2141
 Project: Atlas
  Issue Type: Bug
  Components:  atlas-core
Affects Versions: 0.9-incubating
Reporter: Sharmadha Sainath
 Attachments: NPE_during_tag_delete.txt, NPE_during_tag_edit.txt

Editing tag attribute value associated to an entity throws 500 Internal server 
error with NPE and with Error Notification "Tag  could not be added".

Disassociating a tag from an entity also throws 500 Internal server error with 
NPE , and with Error Notification "Tag  could not be deleted". 

Tag addition works fine.

This is a regression caused after 
[ATLAS-2100|https://issues.apache.org/jira/browse/ATLAS-2100].

Attached the exception stack trace seen for both cases.

CC :[~ashutoshm] [~madhan.neethiraj]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Build failed in Jenkins: Atlas-0.8-UnitTests #60

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2100: UserProfile & SavedSearch API implementation

--
[...truncated 452.64 KB...]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ atlas-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [atlas-webapp] in 
[
[INFO] Processing overlay [ id org.apache.atlas:atlas-dashboardv2]
[INFO] Processing war project
[INFO] Copying webapp resources 
[
[INFO] Building jar: 

[INFO] Webapp assembled in [763 msecs]
[INFO] Building war: 

[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
atlas-webapp ---
[INFO] 
[INFO] --- enunciate-maven-plugin:2.8.0:docs (default) @ atlas-webapp ---
[INFO] [ENUNCIATE] Skipping enunciate per configuration.
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ atlas-webapp ---
[WARNING] The parameter forkMode is deprecated since version 2.14. Use 
forkCount and reuseForks instead.
[INFO] Surefire report directory: 

[INFO] Using configured provider org.apache.maven.surefire.testng.TestNGProvider
[WARNING] file.encoding cannot be set as system property, use 
-Dfile.encoding=... instead

---
 T E S T S
---
Running org.apache.atlas.util.RestUtilsTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.315 sec - in 
org.apache.atlas.util.RestUtilsTest
Running org.apache.atlas.web.setup.SetupStepsTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.243 sec - in 
org.apache.atlas.web.setup.SetupStepsTest
Running org.apache.atlas.web.security.NegativeSSLAndKerberosTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.871 sec - in 
org.apache.atlas.web.security.NegativeSSLAndKerberosTest
Running org.apache.atlas.web.security.FileAuthenticationTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.711 sec - in 
org.apache.atlas.web.security.FileAuthenticationTest
Running org.apache.atlas.web.security.SSLAndKerberosTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 59.448 sec - in 
org.apache.atlas.web.security.SSLAndKerberosTest
Running org.apache.atlas.web.security.UserDaoTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.621 sec - in 
org.apache.atlas.web.security.UserDaoTest
Running org.apache.atlas.web.security.SSLTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.135 sec - in 
org.apache.atlas.web.security.SSLTest
Running org.apache.atlas.web.util.ServletsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.691 sec - in 
org.apache.atlas.web.util.ServletsTest
Running org.apache.atlas.web.resources.AdminResourceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.12 sec - in 
org.apache.atlas.web.resources.AdminResourceTest
Running org.apache.atlas.web.resources.TaxonomyServiceTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.049 sec - in 
org.apache.atlas.web.resources.TaxonomyServiceTest
Running org.apache.atlas.web.resources.EntityResourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.554 sec - in 
org.apache.atlas.web.resources.EntityResourceTest
Running org.apache.atlas.web.resources.AdminExportTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.256 sec - in 
org.apache.atlas.web.resources.AdminExportTest
Running org.apache.atlas.web.adapters.TestEntityREST$5
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 sec - in 
org.apache.atlas.web.adapters.TestEntityREST$5
Running org.apache.atlas.web.adapters.TestEntitiesREST
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.409 sec - in 
org.apache.atlas.web.adapters.TestEntitiesREST
Running org.apache.atlas.web.adapters.TestEntityREST$2
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 sec - in 
org.apache.atlas.web.adapters.TestEntityREST$2
Running org.apache.atlas.web.adapters.TestEntityREST
Tests run: 8, Failures: 2, Errors: 0, Skipped: 2, Time elapsed: 17.552 sec <<< 
FAILURE! - in org.apache.atlas.web.adapters.TestEntityREST
testAddAndUpdateClassificationWithAttributes(org.apache.atlas.web.adapters.TestEntityREST)
  Time elapsed: 0.347 sec  <<< FAILURE!
java.lang.NullPointerException: null
at 
org.apache.atlas.repository.graph.GraphHelper.is

Build failed in Jenkins: Atlas-0.8-IntegrationTests #62

2017-09-17 Thread Apache Jenkins Server
See 


Changes:

[madhan] ATLAS-2100: UserProfile & SavedSearch API implementation

--
[...truncated 519.50 KB...]
127.0.0.1 - - [17/Sep/2017:09:06:56 +] "GET 
/api/atlas/v2/entity/guid/e6945d73-6897-4656-993c-b63639f99f09 HTTP/1.1" 200 - 
"-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:56 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:56 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:56 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET 
/api/atlas/v2/entity/uniqueAttribute/type/hive_db_v2?attr:name=dbvEu2PnZjOU 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET /api/atlas/v2/entity/guid/blah 
HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET 
/api/atlas/entities/0bb75c0e-4cb4-4f17-880d-49b73b7d40af/audit?count=10 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET 
/api/atlas/v2/types/typedef/name/fqJPy205WZ HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "POST /api/atlas/v2/types/typedefs/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "POST /api/atlas/v2/entity/ 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET 
/api/atlas/v2/entity/guid/e8b4487e-bae6-442f-ab22-4d53c6d6b530 HTTP/1.1" 200 - 
"-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:57 +] "GET 
/api/atlas/discovery/search/dsl?query=from+hive_db_v1+name%3D%22dbMTa01raeb0%22 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:58 +] "GET 
/api/atlas/discovery/search/dsl?query=from+blah HTTP/1.1" 400 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:58 +] "GET 
/api/atlas/discovery/search?query=* HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:58 +] "GET 
/api/atlas/discovery/search?query=from+hive_db_v1+name%3D%22dbMTa01raeb0%22 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:06:59 +] "GET 
/api/atlas/discovery/search/gremlin?query=g.V.has('type',+'hive_table_v1').toList()
 HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:00 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:00 +] "POST /api/atlas/types HTTP/1.1" 409 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:00 +] "GET /api/atlas/types/blah HTTP/1.1" 
404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:00 +] "GET 
/api/atlas/v2/types/typedef/name/class_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:00 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "GET 
/api/atlas/v2/types/typedef/name/secure_trait HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "GET 
/api/atlas/v2/types/typedef/name/pii_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "GET 
/api/atlas/v2/types/typedef/name/ssn_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "GET 
/api/atlas/v2/types/typedef/name/salary_trait HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:01 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "GET 
/api/atlas/v2/types/typedef/name/sox_trait HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "GET /api/atlas/types?type=TRAIT 
HTTP/1.1" 200 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "GET 
/api/atlas/v2/types/typedef/name/AxTE1Mqd9xJ HTTP/1.1" 404 - "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "POST /api/atlas/types HTTP/1.1" 201 
- "-" "Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "GET 
/api/atlas/v2/types/typedef/name/A1EUPZ4cgfjA HTTP/1.1" 404 - "-" 
"Java/1.7.0_80"
127.0.0.1 - - [17/Sep/2017:09:07:02 +] "POST /api/atlas/types HTTP/1.1" 20

Re: Review Request 62039: ATLAS-2100: UserProfile & SavedSearch Implementation

2017-09-17 Thread Madhan Neethiraj

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


Ship it!




Ship It!

- Madhan Neethiraj


On Sept. 16, 2017, 8:52 p.m., Ashutosh Mestry wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/62039/
> ---
> 
> (Updated Sept. 16, 2017, 8:52 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, keval bhatt, Madhan Neethiraj, Nixon 
> Rodrigues, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2100
> https://issues.apache.org/jira/browse/ATLAS-2100
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> **Background**
> - The new search implementation allows for creation of complex queries.
> - This sub-feature allows for logged in user to persist search definitions 
> created during a session.
> - These search definition once saved are available to the user on subsequent 
> login.
> 
> **Implementation**
> Following implementation approaches were attempted:
> - New types defined in the models json.
> - _Data Access Layer_: This is semi-generic approach that needs some code per 
> implementation.
> - _AtlasEntity_ adapters: This implementation leverages existing type system 
> to create new types. The model is a facade over _AtlasEntity_. 
> - Added REST-layer filtering for internal types.
> - Modified _SearchFilter_ more capable. 
> 
> **_New Entities_**
> - _AtlasUserProfile_
> - _AtlasSavedSearch_
> 
> **_UserProfileService_**
> - Interacts with the new entities and adds operations that are exposed by 
> REST APIs.
> 
> **_DiscoveryService_**
> - New methods added.
> 
> **Retrieve list of all Saved Searches**
> ```
> curl -g -X GET -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  "http://localhost:21000/api/atlas/v2/search/saved";
> ```
> 
> **Save Search**
> Save this to _savedSearch.json_:
> ```javascript
> {
> "name": "my_search1",
> "owerUserName": "admin",
> "guid": "61613c37-cab8-4ee9-b3e7-590d0694f6e8",
> "searchParameters": {
> "typeName": "hive_table",
> "excludeDeletedEntities": false,
> "limit": 25,
> "offset": 0,
> "entityFilters": {
> "condition": "AND",
> "criterion": [
> {
> "attributeName": "retention",
> "operator": "=",
> "attributeValue": "10"
> },
> {
> "condition": "OR",
> "criterion": [
> {
> "attributeName": "createTime",
> "operator": ">",
> "attributeValue": "11"
> },
> {
> "attributeName": "lastAccessTime",
> "operator": "<=",
> "attributeValue": "22"
> }
> ]
> }
> ]
> }
> }
> }
> ```
> 
> ```javascript
> curl -g -X POST -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  "http://localhost:21000/api/atlas/v2/search/save"; 
> -d @../docs/savedSearch.json
> ```
> 
> **Update Saved Search**
> This will work on existing saved search. Ensure that the parmeter has _guid_ 
> property set.
> 
> ```javascript
> curl -g -X PUT -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  "http://localhost:21000/api/atlas/v2/search/save"; 
> -d @../docs/savedSearch.json
> ```
> 
> **Retrieve Saved Search**
> All searches for the logged in user:
> ```javascript
> curl -g -X GET -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  "http://localhost:21000/api/atlas/v2/search/saved";
> ```
> 
> Specific search for logged in user:
> ```javascript
> curl -g -X GET -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  
> "http://localhost:21000/api/atlas/v2/search/saved/my_search2";
> ```
> 
> Specific search for a specific user:
> ```javascript
> curl -g -X GET -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  
> "http://localhost:21000/api/atlas/v2/search/saved/my_search2?user=admin";
> ```
> 
> **Delete Saved Search**
> ```javascript
> curl -g -X DELETE -u admin:admin -H "Content-Type: application/json" -H 
> "Cache-Control: no-cache"  
> "http://localhost:21000/api/atlas/v2/search/saved/0d0f75ef-b101-466f-843e-60196b81c98e";
> ```
> 
> **REST APIs**
> Irrespective of the plumbing, REST APIs will hide the underlying 
> implementation.
> 
> _AtlasUserProfile_
> 
> ```javascript
> {
> "username": "admin"
> "fullN