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

Bolke de Bruin commented on ATLAS-3754:
---------------------------------------

[~madhan] See the linked issue please. I am working on a patch to refactors 
preCreateOrUpdate and createOrUpdate to allow for this per policy. Changes are 
being detected and only set if the policy allows it. Of course if a client 
still specifies an (system)attribute but is not allowed to set it, it would 
fail now instead of silently dropping such items. Imho, that should be fine as 
the client would then be misbehaving.

> System/Business Attributes (like homeId) not being saved
> --------------------------------------------------------
>
>                 Key: ATLAS-3754
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3754
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: Bolke de Bruin
>            Priority: Blocker
>
> System attributes and business attributes are not being saved (homeId at 
> least isn't)
> {code}
> skipping unchanged entity: AtlasEntity{AtlasStruct{typeName='hdfs_path', 
> attributes=[name:electionresults, 
> qualifiedName:electionresults.electionresults@Sandbox, 
> path:/user/dmaster/electionresults/ls2014.tsv, 
> clusterName:Sandbox]}guid='8e6ede0c-22c5-4b41-bee4-757568b4b99a', 
> homeId='my_home_id_x', isProxy='false', isIncomplete=false, provenanceType=0, 
> status=null, createdBy='null', updatedBy='null', createTime=null, 
> updateTime=null, version=0, relationshipAttributes=[], classifications=[], 
> meanings=[], customAttributes=[], businessAttributes=[], labels=[]} 
> (AtlasEntityStoreV2:1204)
> {code}
> {code}
> skipping unchanged entity: AtlasEntity{AtlasStruct{typeName='hdfs_path', 
> attributes=[name:electionresults, 
> qualifiedName:electionresults.electionresults@Sandbox, 
> path:/user/dmaster/electionresults/ls2014.tsv, 
> clusterName:Sandbox]}guid='8e6ede0c-22c5-4b41-bee4-757568b4b99a', 
> homeId='my_home_id_2', isProxy='false', isIncomplete=false, provenanceType=0, 
> status=null, createdBy='null', updatedBy='null', createTime=null, 
> updateTime=null, version=0, relationshipAttributes=[], classifications=[], 
> meanings=[], customAttributes=[], businessAttributes=[], labels=[]} 
> (AtlasEntityStoreV2:1204)
> {code}
> Note the change in homeId and the entity not being updated



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to