You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Mandar Ambawane <ma...@freestoneinfotech.com> on 2020/12/08 11:44:05 UTC

Review Request 73072: ATLAS-4065 TYPE_DEF_UPDATE audit does not reflect the right values

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

Review request for atlas, Jayendra Parab, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.


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


Repository: atlas


Description
-------

This issue is coming from the Atlas Framework itself.

For every TypeDef Create operation there is subsequent Update call.

Similarly for every TypeDef Update operation there is subsequent Update call.

Some attributes are not getting set in the first Create / Update call of the TypeDef. Instead, they are getting set in the subsequent Update call.

This patch handles all these scenarios.


Diffs
-----

  repository/src/main/java/org/apache/atlas/repository/audit/TypeDefAuditListener.java 4fe9f59 


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


Testing
-------


Thanks,

Mandar Ambawane


Re: Review Request 73072: ATLAS-4065 TYPE_DEF_UPDATE audit does not reflect the right values

Posted by Sarath Subramanian <sa...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73072/#review222319
-----------------------------------------------------------


Fix it, then Ship it!





repository/src/main/java/org/apache/atlas/repository/audit/TypeDefAuditListener.java
Line 68 (original), 67 (patched)
<https://reviews.apache.org/r/73072/#comment311377>

    add check to see if updatedTypes is not empty as well.
    
    if (CollectionUtils.isNotEmpty(createdTypes) && CollectionUtils.isNotEmpty(updatedTypes) && createdTypes.size() == updatedTypes.size())
    
    As an added check verify if the typeName matches in both list before assigning updated typeDefs to created typeDefs


- Sarath Subramanian


On Dec. 8, 2020, 3:44 a.m., Mandar Ambawane wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73072/
> -----------------------------------------------------------
> 
> (Updated Dec. 8, 2020, 3:44 a.m.)
> 
> 
> Review request for atlas, Jayendra Parab, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-4065
>     https://issues.apache.org/jira/browse/ATLAS-4065
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> This issue is coming from the Atlas Framework itself.
> 
> For every TypeDef Create operation there is subsequent Update call.
> 
> Similarly for every TypeDef Update operation there is subsequent Update call.
> 
> Some attributes are not getting set in the first Create / Update call of the TypeDef. Instead, they are getting set in the subsequent Update call.
> 
> This patch handles all these scenarios.
> 
> 
> Diffs
> -----
> 
>   repository/src/main/java/org/apache/atlas/repository/audit/TypeDefAuditListener.java 4fe9f59 
> 
> 
> Diff: https://reviews.apache.org/r/73072/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Mandar Ambawane
> 
>


Re: Review Request 73072: ATLAS-4065 TYPE_DEF_UPDATE audit does not reflect the right values

Posted by Mandar Ambawane <ma...@freestoneinfotech.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73072/
-----------------------------------------------------------

(Updated Dec. 14, 2020, 3:34 a.m.)


Review request for atlas, Jayendra Parab, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.


Changes
-------

Addressed review comments


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


Repository: atlas


Description
-------

This issue is coming from the Atlas Framework itself.

For every TypeDef Create operation there is subsequent Update call.

Similarly for every TypeDef Update operation there is subsequent Update call.

Some attributes are not getting set in the first Create / Update call of the TypeDef. Instead, they are getting set in the subsequent Update call.

This patch handles all these scenarios.


Diffs (updated)
-----

  repository/src/main/java/org/apache/atlas/repository/audit/TypeDefAuditListener.java 4fe9f59 


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

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


Testing
-------


Thanks,

Mandar Ambawane