[jira] [Updated] (ATLAS-1773) Create the OMRS Connector for Atlas

2018-08-21 Thread Graham Wallis (JIRA)


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

Graham Wallis updated ATLAS-1773:
-
Attachment: ATLAS-1773-2018-08-22.patch

> Create the OMRS Connector for Atlas
> ---
>
> Key: ATLAS-1773
> URL: https://issues.apache.org/jira/browse/ATLAS-1773
> Project: Atlas
>  Issue Type: New Feature
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Mandy Chessell
>Assignee: Graham Wallis
>Priority: Major
> Attachments: ATLAS-1773-2018-08-17.patch, 
> ATLAS-1773-2018-08-22.patch, ATLAS-1799-nigel-fixup-20180718a,.patch
>
>
> This JIRA provides the definition of the OMRS Connector API and an 
> implementation of this API for a local Apache Atlas metadata repository and 
> for the OMRS REST API.
> The OMRS Connector has 3 API groups
> * The types API - this is the metadata API for a metadata repository
> * The entity and relationships APIs that provide the type-agnostic interfaces 
> that can access any type - even those added dynamically
> * The fine-grained type-safe APIs that are generated from the addons models 
> in the build.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Build failed in Jenkins: Atlas-1.0-NoTests #844

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 156.62 KB...]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:integration-test (integration-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ atlas-authorization 
---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.9.1:check (checkstyle-check) @ 
atlas-authorization ---
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.1:check (findbugs-check) > :findbugs @ 
atlas-authorization >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:findbugs (findbugs) @ 
atlas-authorization ---
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 

Build failed in Jenkins: Atlas-1.0-AllTests #833

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 202.53 KB...]
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534909551606
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] Exclude: .pc/**
[INFO] Exclude: debian/**
[INFO] Exclude: .svn/**
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.twiki
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.log
[INFO] Exclude: **/target/**
[INFO] Exclude: **/target*/**
[INFO] Exclude: **/build/**
[INFO] Exclude: **/*.patch
[INFO] 

Build failed in Jenkins: Atlas-1.0-IntegrationTests #840

2018-08-21 Thread Apache Jenkins Server
See 


--
[...truncated 191.41 KB...]
 [java] Warnings generated: 4
[INFO] Done FindBugs Analysis
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 
(includes = [**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534908486288
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] 

Build failed in Jenkins: Atlas-1.0-UnitTests #850

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 132.70 KB...]
[INFO] Exclude: **/${sys:atlas.data}/**
[INFO] Exclude: **/policy-store.txt
[INFO] Exclude: **/*rebel*.xml
[INFO] Exclude: **/*rebel*.xml.bak
[INFO] Exclude: **/test/resources/**
[INFO] 17 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 17 licenses.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Surefire report directory: 

[INFO] Using configured provider org.apache.maven.surefire.testng.TestNGProvider

---
 T E S T S
---
Running org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.282 sec - in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534907656853
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml

Re: Pre-installed models

2018-08-21 Thread Apoorv Naik
If you remove all folders except the one named *base model* then Atlas will not 
load the other types.

HTH

On 8/21/18, 8:09 PM, "Allen Cheng"  wrote:

Hi,  Atlas experts

When we install and start a new Atlas server instance, there are a few type
models that are automatically pre-installed, e.g. Hive, Storm, HBase, HDFS,
etc. There are new models added in Atlas 1.0.

Is there any way to skip installing some of the models, and only install
the ones I want?   Is there any property that controls this?  Or if I
remove some of the model json files in the install sir, will it work?

Thanks

Allen




Pre-installed models

2018-08-21 Thread Allen Cheng
Hi,  Atlas experts

When we install and start a new Atlas server instance, there are a few type
models that are automatically pre-installed, e.g. Hive, Storm, HBase, HDFS,
etc. There are new models added in Atlas 1.0.

Is there any way to skip installing some of the models, and only install
the ones I want?   Is there any property that controls this?  Or if I
remove some of the model json files in the install sir, will it work?

Thanks

Allen


Build failed in Jenkins: Atlas-1.0-NoTests #843

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 155.70 KB...]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:integration-test (integration-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ atlas-authorization 
---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.9.1:check (checkstyle-check) @ 
atlas-authorization ---
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.1:check (findbugs-check) > :findbugs @ 
atlas-authorization >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:findbugs (findbugs) @ 
atlas-authorization ---
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 

Build failed in Jenkins: Atlas-1.0-AllTests #832

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 203.54 KB...]
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534898790755
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] Exclude: .pc/**
[INFO] Exclude: debian/**
[INFO] Exclude: .svn/**
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.twiki
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.log
[INFO] Exclude: **/target/**
[INFO] Exclude: **/target*/**
[INFO] Exclude: **/build/**
[INFO] Exclude: **/*.patch
[INFO] Exclude: derby.log
[INFO] 

Build failed in Jenkins: Atlas-1.0-IntegrationTests #839

2018-08-21 Thread Apache Jenkins Server
See 


--
[...truncated 192.34 KB...]
 [java] Warnings generated: 4
[INFO] Done FindBugs Analysis
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 
(includes = [**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534897672159
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] 

Build failed in Jenkins: Atlas-1.0-UnitTests #849

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 133.65 KB...]
[INFO] Exclude: **/${sys:atlas.data}/**
[INFO] Exclude: **/policy-store.txt
[INFO] Exclude: **/*rebel*.xml
[INFO] Exclude: **/*rebel*.xml.bak
[INFO] Exclude: **/test/resources/**
[INFO] 17 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 17 licenses.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Surefire report directory: 

[INFO] Using configured provider org.apache.maven.surefire.testng.TestNGProvider

---
 T E S T S
---
Running org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.343 sec - in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534896859284
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml

[jira] [Commented] (ATLAS-2833) Associating tag to entity in UI throws exception since mapGraphToTypedInstance uses outdated transient typeSystem information

2018-08-21 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-2833:


Commit 2ee6ad097cf59531750e4511c171c8553d5b7f78 in atlas's branch 
refs/heads/0.7.1-incubating from [~sarath.ku...@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=atlas.git;h=2ee6ad0 ]

ATLAS-2833: Associating tag to entity API throws exception since 
mapGraphToTypedInstance uses outdated transient typesystem information


> Associating tag to entity in UI throws exception since 
> mapGraphToTypedInstance uses outdated transient typeSystem information
> -
>
> Key: ATLAS-2833
> URL: https://issues.apache.org/jira/browse/ATLAS-2833
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.7.1-incubating
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 0.7.1-incubating
>
>
> While associating tag to the entity API throws exception but tag gets 
> associated to the entity and then after entity fetch is not working unless 
> you go to search table and remove the associated tag.
> Steps to reproduce.
>  # Create a new tag or run a quick-start
>  # After quick-start or creating tag restart the atlas
>  # Now go tags tab and add new attribute to the any tag
>  # Now associate the same tag to the entity it will show the error.
> *Note*: After *restart* if new attributes are created then that tag will not 
> work it shows exception but if you create new tag after restart then it will 
> work perfectly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (ATLAS-2833) Associating tag to entity in UI throws exception since mapGraphToTypedInstance uses outdated transient typeSystem information

2018-08-21 Thread Sarath Subramanian (JIRA)


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

Sarath Subramanian updated ATLAS-2833:
--
Summary: Associating tag to entity in UI throws exception since 
mapGraphToTypedInstance uses outdated transient typeSystem information  (was: 
Associating tag to entity API throws exception since mapGraphToTypedInstance 
uses outdated transient typesystem information)

> Associating tag to entity in UI throws exception since 
> mapGraphToTypedInstance uses outdated transient typeSystem information
> -
>
> Key: ATLAS-2833
> URL: https://issues.apache.org/jira/browse/ATLAS-2833
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.7.1-incubating
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 0.7.1-incubating
>
>
> While associating tag to the entity API throws exception but tag gets 
> associated to the entity and then after entity fetch is not working unless 
> you go to search table and remove the associated tag.
> Steps to reproduce.
>  # Create a new tag or run a quick-start
>  # After quick-start or creating tag restart the atlas
>  # Now go tags tab and add new attribute to the any tag
>  # Now associate the same tag to the entity it will show the error.
> *Note*: After *restart* if new attributes are created then that tag will not 
> work it shows exception but if you create new tag after restart then it will 
> work perfectly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Re: Review Request 68459: ATLAS-2833: Associating tag to entity API throws exception since mapGraphToTypedInstance uses outdated transient typesystem information

2018-08-21 Thread Madhan Neethiraj

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


Ship it!




Ship It!

- Madhan Neethiraj


On Aug. 21, 2018, 11:43 p.m., Sarath Subramanian wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68459/
> ---
> 
> (Updated Aug. 21, 2018, 11:43 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, keval bhatt, and 
> Madhan Neethiraj.
> 
> 
> Bugs: ATLAS-2833
> https://issues.apache.org/jira/browse/ATLAS-2833
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> While associating tag to the entity API throws exception but tag gets 
> associated to the entity and then after entity fetch is not working unless 
> you go to search table and remove the associated tag.
> 
> Steps to reproduce.
> 
> Create a new tag or run a quick-start
> After quick-start or creating tag restart the atlas
> Now go tags tab and add new attribute to the any tag
> Now associate the same tag to the entity it will show the error.
> 
> 
> Diffs
> -
> 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/AbstractDataType.java
>  dc9cdf256 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/EnumType.java 
> bdd0a131d 
>   
> typesystem/src/main/java/org/apache/atlas/typesystem/types/HierarchicalType.java
>  befc705cc 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/IDataType.java 
> 85ddee7aa 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/StructType.java 
> 6f40c1d56 
>   typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
> c355ba943 
> 
> 
> Diff: https://reviews.apache.org/r/68459/diff/2/
> 
> 
> Testing
> ---
> 
> Manually verified the steps to reproduce doesn't result in exceptions anymore
> 
> 
> Thanks,
> 
> Sarath Subramanian
> 
>



Re: Review Request 68459: ATLAS-2833: Associating tag to entity API throws exception since mapGraphToTypedInstance uses outdated transient typesystem information

2018-08-21 Thread Sarath Subramanian

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

(Updated Aug. 21, 2018, 4:43 p.m.)


Review request for atlas, Apoorv Naik, Ashutosh Mestry, keval bhatt, and Madhan 
Neethiraj.


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


Repository: atlas


Description
---

While associating tag to the entity API throws exception but tag gets 
associated to the entity and then after entity fetch is not working unless you 
go to search table and remove the associated tag.

Steps to reproduce.

Create a new tag or run a quick-start
After quick-start or creating tag restart the atlas
Now go tags tab and add new attribute to the any tag
Now associate the same tag to the entity it will show the error.


Diffs (updated)
-

  
typesystem/src/main/java/org/apache/atlas/typesystem/types/AbstractDataType.java
 dc9cdf256 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/EnumType.java 
bdd0a131d 
  
typesystem/src/main/java/org/apache/atlas/typesystem/types/HierarchicalType.java
 befc705cc 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/IDataType.java 
85ddee7aa 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/StructType.java 
6f40c1d56 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/TypeSystem.java 
c355ba943 


Diff: https://reviews.apache.org/r/68459/diff/2/

Changes: https://reviews.apache.org/r/68459/diff/1-2/


Testing
---

Manually verified the steps to reproduce doesn't result in exceptions anymore


Thanks,

Sarath Subramanian



Build failed in Jenkins: Atlas-1.0-NoTests #842

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 155.70 KB...]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:integration-test (integration-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ atlas-authorization 
---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.9.1:check (checkstyle-check) @ 
atlas-authorization ---
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.1:check (findbugs-check) > :findbugs @ 
atlas-authorization >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:findbugs (findbugs) @ 
atlas-authorization ---
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 

Build failed in Jenkins: Atlas-1.0-AllTests #831

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 202.53 KB...]
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534887986740
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] Exclude: .pc/**
[INFO] Exclude: debian/**
[INFO] Exclude: .svn/**
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.twiki
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.log
[INFO] Exclude: **/target/**
[INFO] Exclude: **/target*/**
[INFO] Exclude: **/build/**
[INFO] Exclude: **/*.patch
[INFO] 

Review Request 68459: ATLAS-2833: Associating tag to entity API throws exception since mapGraphToTypedInstance uses outdated transient typesystem information

2018-08-21 Thread Sarath Subramanian

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

Review request for atlas, Apoorv Naik, Ashutosh Mestry, keval bhatt, and Madhan 
Neethiraj.


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


Repository: atlas


Description
---

While associating tag to the entity API throws exception but tag gets 
associated to the entity and then after entity fetch is not working unless you 
go to search table and remove the associated tag.

Steps to reproduce.

Create a new tag or run a quick-start
After quick-start or creating tag restart the atlas
Now go tags tab and add new attribute to the any tag
Now associate the same tag to the entity it will show the error.


Diffs
-

  
repository/src/main/java/org/apache/atlas/repository/graph/GraphToTypedInstanceMapper.java
 5c7cb2e8f 
  typesystem/src/main/java/org/apache/atlas/typesystem/types/ClassType.java 
24d2750c3 


Diff: https://reviews.apache.org/r/68459/diff/1/


Testing
---

Manually verified the steps to reproduce doesn't result in exceptions anymore


Thanks,

Sarath Subramanian



[jira] [Updated] (ATLAS-2833) Associating tag to entity API throws exception since mapGraphToTypedInstance uses outdated transient typesystem information

2018-08-21 Thread Sarath Subramanian (JIRA)


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

Sarath Subramanian updated ATLAS-2833:
--
Description: 
While associating tag to the entity API throws exception but tag gets 
associated to the entity and then after entity fetch is not working unless you 
go to search table and remove the associated tag.

Steps to reproduce.
 # Create a new tag or run a quick-start
 # After quick-start or creating tag restart the atlas
 # Now go tags tab and add new attribute to the any tag
 # Now associate the same tag to the entity it will show the error.

*Note*: After *restart* if new attributes are created then that tag will not 
work it shows exception but if you create new tag after restart then it will 
work perfectly.

  was:
While associating tag to the entity API throws exception but tag gets 
associated to the entity and then after entity fetch is not working unless you 
go to search table and remove the associated tag.

 

Steps to reproduce.
 # Create a new tag or run a quick-start
 # After quick-start or creating tag restart the atlas
 # Now go tags tab and add new attribute to the any tag
 # Now associate the same tag to the entity it will show the error.
 # 

*Note*: After *restart* if new attributes are created then that tag will not 
work it shows exception but if you create new tag after restart then it will 
work perfectly.


> Associating tag to entity API throws exception since mapGraphToTypedInstance 
> uses outdated transient typesystem information
> ---
>
> Key: ATLAS-2833
> URL: https://issues.apache.org/jira/browse/ATLAS-2833
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 0.7.1-incubating
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 0.7.1-incubating
>
>
> While associating tag to the entity API throws exception but tag gets 
> associated to the entity and then after entity fetch is not working unless 
> you go to search table and remove the associated tag.
> Steps to reproduce.
>  # Create a new tag or run a quick-start
>  # After quick-start or creating tag restart the atlas
>  # Now go tags tab and add new attribute to the any tag
>  # Now associate the same tag to the entity it will show the error.
> *Note*: After *restart* if new attributes are created then that tag will not 
> work it shows exception but if you create new tag after restart then it will 
> work perfectly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (ATLAS-2833) Associating tag to entity API throws exception since mapGraphToTypedInstance uses outdated transient typesystem information

2018-08-21 Thread Sarath Subramanian (JIRA)
Sarath Subramanian created ATLAS-2833:
-

 Summary: Associating tag to entity API throws exception since 
mapGraphToTypedInstance uses outdated transient typesystem information
 Key: ATLAS-2833
 URL: https://issues.apache.org/jira/browse/ATLAS-2833
 Project: Atlas
  Issue Type: Bug
  Components:  atlas-core
Affects Versions: 0.7.1-incubating
Reporter: Sarath Subramanian
Assignee: Sarath Subramanian
 Fix For: 0.7.1-incubating


While associating tag to the entity API throws exception but tag gets 
associated to the entity and then after entity fetch is not working unless you 
go to search table and remove the associated tag.

 

Steps to reproduce.
 # Create a new tag or run a quick-start
 # After quick-start or creating tag restart the atlas
 # Now go tags tab and add new attribute to the any tag
 # Now associate the same tag to the entity it will show the error.
 # 

*Note*: After *restart* if new attributes are created then that tag will not 
work it shows exception but if you create new tag after restart then it will 
work perfectly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Build failed in Jenkins: Atlas-1.0-IntegrationTests #838

2018-08-21 Thread Apache Jenkins Server
See 


--
[...truncated 191.42 KB...]
 [java] Warnings generated: 4
[INFO] Done FindBugs Analysis
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 
(includes = [**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534886860976
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] 

Re: Review Request 68427: Add Tag to Imported Entities for the AtlasImportRequest that has 'replicatedTo'

2018-08-21 Thread Madhan Neethiraj

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




repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java
Lines 50 (patched)


Inline with tags we use in demo, use upper-case letters for tag names, like 
"REPLICATED".



repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java
Lines 63 (patched)


AuditsWriter doesn't seem to be the right place for 'entityTagger'. 
Treating it as a transformer (during import) might be a better choice. Please 
review.



repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java
Line 169 (original), 176 (patched)


ImportAudits doesn't seem to be the right place for 
'updateReplicationAttributeForImport()'. Treating it as a transformer (during 
import) might be a better choice. Please review.



repository/src/main/java/org/apache/atlas/repository/impexp/EntityTagger.java
Lines 40 (patched)


Consider marking these as 'final'



repository/src/main/java/org/apache/atlas/repository/impexp/EntityTagger.java
Lines 62 (patched)


Is 'operation' neded here? line #52 passes the classification name for this 
param. Consider removing it.



repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
Lines 541 (patched)


Instead of try/catch to detect if the entity is already associated with 
this tag, consider refactoring validateEntityAssociations(), like:

if (hasClassification(guid, classification)) {
  if (!ignoreIfAlreadyPresent) {
throw new AtlasBaseException(AtlasErrorCode.INVALID_PARAMETERS, 
"entity: " + guid + ", is already associated with classification: "  + 
newClassification);
  }
}


- Madhan Neethiraj


On Aug. 21, 2018, 4:48 p.m., Ashutosh Mestry wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68427/
> ---
> 
> (Updated Aug. 21, 2018, 4:48 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Madhan Neethiraj, and Sarath 
> Subramanian.
> 
> 
> Bugs: ATLAS-2818
> https://issues.apache.org/jira/browse/ATLAS-2818
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> **Approach**
> - New method added to _AtlasEntityStore_ to add classifications without 
> updating entity metadata.
> - New class _EntityTagger_ added.
> - Modified _AudisWriter.ImportAudit_ to include call to _EntityTagger_.
> 
> 
> Diffs
> -
> 
>   
> repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java 
> 467d3839a4aff71b7f3d1e03ccd0a828d2ce8c76 
>   
> repository/src/main/java/org/apache/atlas/repository/impexp/ClusterService.java
>  950850e92640fd427d68b8ab1bee5a8f810119cd 
>   
> repository/src/main/java/org/apache/atlas/repository/impexp/EntityTagger.java 
> PRE-CREATION 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasEntityStore.java
>  6a1a88f4fc714ef069b38cdffd2c5fcc653869e1 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
>  2bfef788d1ff185c635879f329fa62daafec45ce 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v1/BulkImporterImpl.java
>  467ced7748e934b4829ee6f7bbafac39020529ac 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
>  47960f3f760c322d250559fa1cee2e78b8de2d52 
>   
> repository/src/test/java/org/apache/atlas/repository/impexp/EntityTaggerTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1BulkImportPercentTest.java
>  73dfe37c786336ec267247a716a27f53e0d74993 
> 
> 
> Diff: https://reviews.apache.org/r/68427/diff/4/
> 
> 
> Testing
> ---
> 
> **Unit tests**
> New tests added.
> 
> **Pre-commit**
> https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/598/
> 
> 
> Thanks,
> 
> Ashutosh Mestry
> 
>



Build failed in Jenkins: Atlas-1.0-UnitTests #848

2018-08-21 Thread Apache Jenkins Server
See 

--
[...truncated 132.72 KB...]
[INFO] Exclude: **/${sys:atlas.data}/**
[INFO] Exclude: **/policy-store.txt
[INFO] Exclude: **/*rebel*.xml
[INFO] Exclude: **/*rebel*.xml.bak
[INFO] Exclude: **/test/resources/**
[INFO] 17 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 17 licenses.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Surefire report directory: 

[INFO] Using configured provider org.apache.maven.surefire.testng.TestNGProvider

---
 T E S T S
---
Running org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.106 sec - in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534886058129
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml

Build failed in Jenkins: Atlas-1.0-UnitTests #847

2018-08-21 Thread Apache Jenkins Server
See 


Changes:

[ssubramanian] ATLAS-2830: Tag Propagation, Entity Delete : Classification 
update

--
[...truncated 132.72 KB...]
[INFO] Exclude: **/${sys:atlas.data}/**
[INFO] Exclude: **/policy-store.txt
[INFO] Exclude: **/*rebel*.xml
[INFO] Exclude: **/*rebel*.xml.bak
[INFO] Exclude: **/test/resources/**
[INFO] 17 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 17 licenses.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Surefire report directory: 

[INFO] Using configured provider org.apache.maven.surefire.testng.TestNGProvider

---
 T E S T S
---
Running org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.326 sec - in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthorizerTest

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534882465596
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit 

Build failed in Jenkins: Atlas-1.0-NoTests #841

2018-08-21 Thread Apache Jenkins Server
See 


Changes:

[ssubramanian] ATLAS-2830: Tag Propagation, Entity Delete : Classification 
update

--
[...truncated 155.71 KB...]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to 

[INFO] 
:
 

 uses or overrides a deprecated API.
[INFO] 
:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
atlas-authorization ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ 
atlas-authorization ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.7:attach-descriptor (attach-descriptor) @ 
atlas-authorization ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:integration-test (integration-test) @ 
atlas-authorization ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-sources) @ 
atlas-authorization ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-failsafe-plugin:2.18.1:verify (verify) @ atlas-authorization 
---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.9.1:check (checkstyle-check) @ 
atlas-authorization ---
[INFO] 
[INFO] >>> findbugs-maven-plugin:3.0.1:check (findbugs-check) > :findbugs @ 
atlas-authorization >>>
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:findbugs (findbugs) @ 
atlas-authorization ---
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean 

Build failed in Jenkins: Atlas-1.0-AllTests #830

2018-08-21 Thread Apache Jenkins Server
See 


Changes:

[ssubramanian] ATLAS-2830: Tag Propagation, Entity Delete : Classification 
update

--
[...truncated 202.55 KB...]
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 
 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 (includes = 
[**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534880763216
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 'git' 
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: **/.cache-tests
[INFO] Exclude: **/.checkstyle
[INFO] Exclude: **/*.txt
[INFO] Exclude: **/*.json
[INFO] Exclude: .pc/**
[INFO] Exclude: debian/**
[INFO] Exclude: .svn/**
[INFO] Exclude: .git/**
[INFO] Exclude: .gitignore
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.twiki
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.json
[INFO] Exclude: **/*.log
[INFO] 

Build failed in Jenkins: Atlas-1.0-IntegrationTests #837

2018-08-21 Thread Apache Jenkins Server
See 


Changes:

[ssubramanian] ATLAS-2830: Tag Propagation, Entity Delete : Classification 
update

--
[...truncated 191.39 KB...]
 [java] Warnings generated: 4
[INFO] Done FindBugs Analysis
[INFO] 
[INFO] <<< findbugs-maven-plugin:3.0.1:check (findbugs-check) < :findbugs @ 
atlas-authorization <<<
[INFO] 
[INFO] 
[INFO] --- findbugs-maven-plugin:3.0.1:check (findbugs-check) @ 
atlas-authorization ---
[INFO] BugInstance size is 4
[INFO] Error size is 0
[INFO] Total bugs: 4
[INFO] org.apache.atlas.authorize.AtlasAccessRequest.getAccessTime() may expose 
internal representation by returning AtlasAccessRequest.accessTime 
[org.apache.atlas.authorize.AtlasAccessRequest] At 
AtlasAccessRequest.java:[line 69]
[INFO] Possible exposure of partially initialized object in 
org.apache.atlas.authorize.AtlasAuthorizerFactory.getAtlasAuthorizer() 
[org.apache.atlas.authorize.AtlasAuthorizerFactory, 
org.apache.atlas.authorize.AtlasAuthorizerFactory] At 
AtlasAuthorizerFactory.java:[line 75]Stored at 
AtlasAuthorizerFactory.java:[line 73]
[INFO] Found reliance on default encoding in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.writeUsingFiles(String,
 String): String.getBytes() 
[org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 145]
[INFO] Exception is caught when Exception is not thrown in 
org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool.updateSimpleAuthzJsonWithRelationshipPermissions(String)
 [org.apache.atlas.authorize.simple.AtlasSimpleAuthzUpdateTool] At 
AtlasSimpleAuthzUpdateTool.java:[line 118]
[INFO] 


To see bug detail using the Findbugs GUI, use the following command "mvn 
findbugs:gui"



[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
atlas-authorization ---
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-sources.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/atlas/atlas-authorization/1.1.0-SNAPSHOT/atlas-authorization-1.1.0-SNAPSHOT-test-sources.jar
[INFO] 
[INFO] -< org.apache.atlas:atlas-repository >--
[INFO] Building Apache Atlas Repository 1.1.0-SNAPSHOT  [20/37]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atlas-repository ---
[INFO] Deleting 
 
(includes = [**/*.pyc], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @ 
atlas-repository ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ atlas-repository ---
[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildNumber: de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 at 
timestamp: 1534879682831
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd 
' && 
'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: 

[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ atlas-repository ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: **/antlr4/**
[INFO] Exclude: **/dependency-reduced-pom.xml
[INFO] Exclude: **/javax.script.ScriptEngineFactory
[INFO] Exclude: .reviewboardrc
[INFO] Exclude: 3party-licenses/**
[INFO] Exclude: **/.cache
[INFO] Exclude: **/.cache-main
[INFO] Exclude: 

[jira] [Commented] (ATLAS-2830) Tag Propagation,Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-2830:


Commit 4b2324f360b212d7495ce72e1b24075d04d05f6b in atlas's branch 
refs/heads/master from [~sarath.ku...@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=atlas.git;h=4b2324f ]

ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification 
not sent to entities down the lineage present after the deleted entity


> Tag Propagation,Entity Delete : Classification update notification not sent 
> to entities down the lineage present after the deleted entity.
> --
>
> Key: ATLAS-2830
> URL: https://issues.apache.org/jira/browse/ATLAS-2830
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 1.1.0
>
>
> 1. Create a lineage like the following :
> table1 -> table2 > table3 -> table4 > table5
> 2. Add tag1 to table1 ( with default false value for 
> removePropagationsOnEntityDelete , propagate to True)
> 3. drop table3
> 4. Edit some tag attributes of tag1 associated to table1.
> 5. In Atlas , the tag1 attributes are updated down the lineage till table5.
> 6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only 
> till table3. No notification is sent for table4 and table5.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ATLAS-2830) Tag Propagation,Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on ATLAS-2830:


Commit de61f6abd5e7c44cc2fb11a916f391a90c9f6f42 in atlas's branch 
refs/heads/branch-1.0 from [~sarath.ku...@gmail.com]
[ https://git-wip-us.apache.org/repos/asf?p=atlas.git;h=de61f6a ]

ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification 
not sent to entities down the lineage present after the deleted entity

(cherry picked from commit 4b2324f360b212d7495ce72e1b24075d04d05f6b)


> Tag Propagation,Entity Delete : Classification update notification not sent 
> to entities down the lineage present after the deleted entity.
> --
>
> Key: ATLAS-2830
> URL: https://issues.apache.org/jira/browse/ATLAS-2830
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 1.1.0
>
>
> 1. Create a lineage like the following :
> table1 -> table2 > table3 -> table4 > table5
> 2. Add tag1 to table1 ( with default false value for 
> removePropagationsOnEntityDelete , propagate to True)
> 3. drop table3
> 4. Edit some tag attributes of tag1 associated to table1.
> 5. In Atlas , the tag1 attributes are updated down the lineage till table5.
> 6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only 
> till table3. No notification is sent for table4 and table5.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Re: Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Sarath Subramanian

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

(Updated Aug. 21, 2018, 12:14 p.m.)


Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
Nixon Rodrigues.


Changes
---

addressed Apoorv's review comments.


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


Repository: atlas


Description
---

1. Create a lineage like the following :

table1 -> table2 > table3 -> table4 > table5

2. Add tag1 to table1 ( with default false value for 
removePropagationsOnEntityDelete , propagate to True)
3. drop table3
4. Edit some tag attributes of tag1 associated to table1.
5. In Atlas , the tag1 attributes are updated down the lineage till table5.
6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only till 
table3. No notification is sent for table4 and table5.


Diffs (updated)
-

  repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
78ed74d65 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
 7eb32148a 


Diff: https://reviews.apache.org/r/68435/diff/4/

Changes: https://reviews.apache.org/r/68435/diff/3-4/


Testing
---

Precommit: 
https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/601/console


Thanks,

Sarath Subramanian



[jira] [Created] (ATLAS-2832) Replace Titan with JanusGraph in the architecture diagram

2018-08-21 Thread Jerry He (JIRA)
Jerry He created ATLAS-2832:
---

 Summary: Replace Titan with JanusGraph in the architecture diagram
 Key: ATLAS-2832
 URL: https://issues.apache.org/jira/browse/ATLAS-2832
 Project: Atlas
  Issue Type: Task
Reporter: Jerry He


In Atlas 1.0, the graph backend is JanusGraph.  We should replace Titan with 
JanusGraph in this diagram https://atlas.apache.org/Architecture.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Re: Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Madhan Neethiraj

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


Ship it!




Ship It!

- Madhan Neethiraj


On Aug. 21, 2018, 5:13 p.m., Sarath Subramanian wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68435/
> ---
> 
> (Updated Aug. 21, 2018, 5:13 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
> Nixon Rodrigues.
> 
> 
> Bugs: ATLAS-2830
> https://issues.apache.org/jira/browse/ATLAS-2830
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> 1. Create a lineage like the following :
> 
> table1 -> table2 > table3 -> table4 > table5
> 
> 2. Add tag1 to table1 ( with default false value for 
> removePropagationsOnEntityDelete , propagate to True)
> 3. drop table3
> 4. Edit some tag attributes of tag1 associated to table1.
> 5. In Atlas , the tag1 attributes are updated down the lineage till table5.
> 6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only 
> till table3. No notification is sent for table4 and table5.
> 
> 
> Diffs
> -
> 
>   repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
> 78ed74d65 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
>  7eb32148a 
> 
> 
> Diff: https://reviews.apache.org/r/68435/diff/3/
> 
> 
> Testing
> ---
> 
> Precommit: 
> https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/601/console
> 
> 
> Thanks,
> 
> Sarath Subramanian
> 
>



Re: Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Apoorv Naik

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




repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
Lines 1672 (patched)


Handle null, isActive doesn't do that right now.



repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
Lines 1685 (patched)


same here


- Apoorv Naik


On Aug. 21, 2018, 5:13 p.m., Sarath Subramanian wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68435/
> ---
> 
> (Updated Aug. 21, 2018, 5:13 p.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
> Nixon Rodrigues.
> 
> 
> Bugs: ATLAS-2830
> https://issues.apache.org/jira/browse/ATLAS-2830
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> 1. Create a lineage like the following :
> 
> table1 -> table2 > table3 -> table4 > table5
> 
> 2. Add tag1 to table1 ( with default false value for 
> removePropagationsOnEntityDelete , propagate to True)
> 3. drop table3
> 4. Edit some tag attributes of tag1 associated to table1.
> 5. In Atlas , the tag1 attributes are updated down the lineage till table5.
> 6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only 
> till table3. No notification is sent for table4 and table5.
> 
> 
> Diffs
> -
> 
>   repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
> 78ed74d65 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
>  7eb32148a 
> 
> 
> Diff: https://reviews.apache.org/r/68435/diff/3/
> 
> 
> Testing
> ---
> 
> Precommit: 
> https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/601/console
> 
> 
> Thanks,
> 
> Sarath Subramanian
> 
>



Re: Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Sarath Subramanian

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

(Updated Aug. 21, 2018, 10:13 a.m.)


Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
Nixon Rodrigues.


Changes
---

addressed review comments.


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


Repository: atlas


Description
---

1. Create a lineage like the following :

table1 -> table2 > table3 -> table4 > table5

2. Add tag1 to table1 ( with default false value for 
removePropagationsOnEntityDelete , propagate to True)
3. drop table3
4. Edit some tag attributes of tag1 associated to table1.
5. In Atlas , the tag1 attributes are updated down the lineage till table5.
6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only till 
table3. No notification is sent for table4 and table5.


Diffs (updated)
-

  repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
78ed74d65 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
 7eb32148a 


Diff: https://reviews.apache.org/r/68435/diff/3/

Changes: https://reviews.apache.org/r/68435/diff/2-3/


Testing
---

Precommit in progress.


Thanks,

Sarath Subramanian



Re: Review Request 68427: Add Tag to Imported Entities for the AtlasImportRequest that has 'replicatedTo'

2018-08-21 Thread Ashutosh Mestry

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

(Updated Aug. 21, 2018, 4:48 p.m.)


Review request for atlas, Apoorv Naik, Madhan Neethiraj, and Sarath Subramanian.


Changes
---

Updates include: 
- Published.


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


Repository: atlas


Description
---

**Approach**
- New method added to _AtlasEntityStore_ to add classifications without 
updating entity metadata.
- New class _EntityTagger_ added.
- Modified _AudisWriter.ImportAudit_ to include call to _EntityTagger_.


Diffs (updated)
-

  repository/src/main/java/org/apache/atlas/repository/impexp/AuditsWriter.java 
467d3839a4aff71b7f3d1e03ccd0a828d2ce8c76 
  
repository/src/main/java/org/apache/atlas/repository/impexp/ClusterService.java 
950850e92640fd427d68b8ab1bee5a8f810119cd 
  repository/src/main/java/org/apache/atlas/repository/impexp/EntityTagger.java 
PRE-CREATION 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasEntityStore.java
 6a1a88f4fc714ef069b38cdffd2c5fcc653869e1 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
 2bfef788d1ff185c635879f329fa62daafec45ce 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/BulkImporterImpl.java
 467ced7748e934b4829ee6f7bbafac39020529ac 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
 47960f3f760c322d250559fa1cee2e78b8de2d52 
  
repository/src/test/java/org/apache/atlas/repository/impexp/EntityTaggerTest.java
 PRE-CREATION 
  
repository/src/test/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1BulkImportPercentTest.java
 73dfe37c786336ec267247a716a27f53e0d74993 


Diff: https://reviews.apache.org/r/68427/diff/4/

Changes: https://reviews.apache.org/r/68427/diff/3-4/


Testing
---

**Unit tests**
New tests added.

**Pre-commit**
https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/598/


Thanks,

Ashutosh Mestry



Re: Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Madhan Neethiraj

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




intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java
Lines 218 (patched)


It will be good to avoid helper methods, like isActive() added here, in 
model classes used in REST interface.



repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
Lines 1533 (patched)


'notificationVertices' can end up with duplicate entries, which can result 
in multiple notifications for few entities. Consider using 'Set' to avoid this 
case.


- Madhan Neethiraj


On Aug. 21, 2018, 7:58 a.m., Sarath Subramanian wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68435/
> ---
> 
> (Updated Aug. 21, 2018, 7:58 a.m.)
> 
> 
> Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
> Nixon Rodrigues.
> 
> 
> Bugs: ATLAS-2830
> https://issues.apache.org/jira/browse/ATLAS-2830
> 
> 
> Repository: atlas
> 
> 
> Description
> ---
> 
> 1. Create a lineage like the following :
> 
> table1 -> table2 > table3 -> table4 > table5
> 
> 2. Add tag1 to table1 ( with default false value for 
> removePropagationsOnEntityDelete , propagate to True)
> 3. drop table3
> 4. Edit some tag attributes of tag1 associated to table1.
> 5. In Atlas , the tag1 attributes are updated down the lineage till table5.
> 6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only 
> till table3. No notification is sent for table4 and table5.
> 
> 
> Diffs
> -
> 
>   intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java 
> 066b0d0f4 
>   repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
> 78ed74d65 
>   
> repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
>  7eb32148a 
> 
> 
> Diff: https://reviews.apache.org/r/68435/diff/2/
> 
> 
> Testing
> ---
> 
> Precommit in progress.
> 
> 
> Thanks,
> 
> Sarath Subramanian
> 
>



Jenkins build is back to normal : Atlas-1.0-AllTests #827

2018-08-21 Thread Apache Jenkins Server
See 



Jenkins build is back to normal : Atlas-master-IntegrationTests #2185

2018-08-21 Thread Apache Jenkins Server
See 




Jenkins build is back to normal : Atlas-1.0-NoTests #838

2018-08-21 Thread Apache Jenkins Server
See 



Jenkins build is back to normal : Atlas-1.0-UnitTests #844

2018-08-21 Thread Apache Jenkins Server
See 



[jira] [Resolved] (ATLAS-2831) On tag association , removePropagationsOnEntityDelete is set to True as default value via REST , differing from UI which sets default value false.

2018-08-21 Thread Sarath Subramanian (JIRA)


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

Sarath Subramanian resolved ATLAS-2831.
---
Resolution: Duplicate

> On tag association , removePropagationsOnEntityDelete is set to True as 
> default value via REST , differing from UI which sets default value false.
> --
>
> Key: ATLAS-2831
> URL: https://issues.apache.org/jira/browse/ATLAS-2831
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Sarath Subramanian
>Assignee: Sarath Subramanian
>Priority: Major
> Fix For: 1.1.0
>
>
> On associating tag to an entity in UI , propagate flag is turned on and 
> removePropagationsOnEntityDelete is turned off . 
> This sets default value of true to propagate , false to 
> removePropagationsOnEntityDelete.
> But if entity is tagged via REST call , and removePropagationsOnEntityDelete 
> flag is not specified , default value of true is assigned.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (ATLAS-2831) On tag association , removePropagationsOnEntityDelete is set to True as default value via REST , differing from UI which sets default value false.

2018-08-21 Thread Sarath Subramanian (JIRA)
Sarath Subramanian created ATLAS-2831:
-

 Summary: On tag association , removePropagationsOnEntityDelete is 
set to True as default value via REST , differing from UI which sets default 
value false.
 Key: ATLAS-2831
 URL: https://issues.apache.org/jira/browse/ATLAS-2831
 Project: Atlas
  Issue Type: Bug
  Components:  atlas-core
Affects Versions: 1.0.0
Reporter: Sarath Subramanian
Assignee: Sarath Subramanian
 Fix For: 1.1.0


On associating tag to an entity in UI , propagate flag is turned on and 
removePropagationsOnEntityDelete is turned off . 
This sets default value of true to propagate , false to 
removePropagationsOnEntityDelete.

But if entity is tagged via REST call , and removePropagationsOnEntityDelete 
flag is not specified , default value of true is assigned.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Review Request 68435: ATLAS-2830: Tag Propagation, Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Sarath Subramanian

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

Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, and 
Nixon Rodrigues.


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


Repository: atlas


Description
---

1. Create a lineage like the following :

table1 -> table2 > table3 -> table4 > table5

2. Add tag1 to table1 ( with default false value for 
removePropagationsOnEntityDelete , propagate to True)
3. drop table3
4. Edit some tag attributes of tag1 associated to table1.
5. In Atlas , the tag1 attributes are updated down the lineage till table5.
6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only till 
table3. No notification is sent for table4 and table5.


Diffs
-

  intg/src/main/java/org/apache/atlas/model/instance/AtlasEntity.java 066b0d0f4 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
 7eb32148a 


Diff: https://reviews.apache.org/r/68435/diff/1/


Testing
---

Precommit in progress.


Thanks,

Sarath Subramanian



[jira] [Created] (ATLAS-2830) Tag Propagation,Entity Delete : Classification update notification not sent to entities down the lineage present after the deleted entity.

2018-08-21 Thread Sarath Subramanian (JIRA)
Sarath Subramanian created ATLAS-2830:
-

 Summary: Tag Propagation,Entity Delete : Classification update 
notification not sent to entities down the lineage present after the deleted 
entity.
 Key: ATLAS-2830
 URL: https://issues.apache.org/jira/browse/ATLAS-2830
 Project: Atlas
  Issue Type: Bug
  Components:  atlas-core
Affects Versions: 1.0.0
Reporter: Sarath Subramanian
Assignee: Sarath Subramanian
 Fix For: 1.1.0


1. Create a lineage like the following :

table1 -> table2 > table3 -> table4 > table5

2. Add tag1 to table1 ( with default false value for 
removePropagationsOnEntityDelete , propagate to True)
3. drop table3
4. Edit some tag attributes of tag1 associated to table1.
5. In Atlas , the tag1 attributes are updated down the lineage till table5.
6. But , CLASSIFICATION_UPDATE notification is sent to ATLAS_ENTITIES only till 
table3. No notification is sent for table4 and table5.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)