You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Apoorv Naik <na...@gmail.com> on 2018/01/10 07:26:27 UTC

Review Request 65064: ATLAS-2326: Error code fixes

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

Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.


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


Repository: atlas


Description
-------

Entity resource for GET was translating the AtlasBaseException incorrectly.
The AtlasErrorCode class has duplicate codes and wrong sequence number


Diffs
-----

  intg/src/main/java/org/apache/atlas/AtlasErrorCode.java 0953725cc 
  webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java e3a5b1f3e 


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


Testing
-------

GET localhost:21000/api/atlas/entities/abcd-123124 gives 404 instead of 500


Thanks,

Apoorv Naik


Re: Review Request 65064: ATLAS-2326: Error handling fix in EntityResource

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65064/#review195150
-----------------------------------------------------------


Ship it!




Ship It!

- Madhan Neethiraj


On Jan. 10, 2018, 5:52 p.m., Apoorv Naik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65064/
> -----------------------------------------------------------
> 
> (Updated Jan. 10, 2018, 5:52 p.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2326
>     https://issues.apache.org/jira/browse/ATLAS-2326
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> Entity resource for GET was translating the AtlasBaseException incorrectly.
> 
> 
> Diffs
> -----
> 
>   webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java 8fd4d5ad6 
> 
> 
> Diff: https://reviews.apache.org/r/65064/diff/2/
> 
> 
> Testing
> -------
> 
> GET localhost:21000/api/atlas/entities/abcd-123124 gives 404 instead of 500
> 
> 
> Thanks,
> 
> Apoorv Naik
> 
>


Re: Review Request 65064: ATLAS-2326: Error handling fix in EntityResource

Posted by Apoorv Naik <na...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65064/
-----------------------------------------------------------

(Updated Jan. 10, 2018, 5:52 p.m.)


Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.


Changes
-------

Removed the ErrorCode changes


Summary (updated)
-----------------

ATLAS-2326: Error handling fix in EntityResource


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


Repository: atlas


Description (updated)
-------

Entity resource for GET was translating the AtlasBaseException incorrectly.


Diffs (updated)
-----

  webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java 8fd4d5ad6 


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

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


Testing
-------

GET localhost:21000/api/atlas/entities/abcd-123124 gives 404 instead of 500


Thanks,

Apoorv Naik


Re: Review Request 65064: ATLAS-2326: Error code fixes

Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/65064/#review195144
-----------------------------------------------------------




intg/src/main/java/org/apache/atlas/AtlasErrorCode.java
Line 55 (original), 55 (patched)
<https://reviews.apache.org/r/65064/#comment274289>

    I would suggest to not change the error-code across releases; it will make it difficult to troubleshoot. 
    
    The gaps in error-code assignments can be filled as new error-codes are added.


- Madhan Neethiraj


On Jan. 10, 2018, 7:26 a.m., Apoorv Naik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/65064/
> -----------------------------------------------------------
> 
> (Updated Jan. 10, 2018, 7:26 a.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-2326
>     https://issues.apache.org/jira/browse/ATLAS-2326
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> Entity resource for GET was translating the AtlasBaseException incorrectly.
> The AtlasErrorCode class has duplicate codes and wrong sequence number
> 
> 
> Diffs
> -----
> 
>   intg/src/main/java/org/apache/atlas/AtlasErrorCode.java 0953725cc 
>   webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java e3a5b1f3e 
> 
> 
> Diff: https://reviews.apache.org/r/65064/diff/1/
> 
> 
> Testing
> -------
> 
> GET localhost:21000/api/atlas/entities/abcd-123124 gives 404 instead of 500
> 
> 
> Thanks,
> 
> Apoorv Naik
> 
>