You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Deep Singh <de...@gmail.com> on 2020/12/03 18:05:44 UTC

Review Request 73062: ATLAS-4049: Issue with few /admin APIs when hit on PASSIVE Atlas instance in HA mode

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

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


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


Repository: atlas


Description
-------

Following list of admin APIs failed to respond by passive server in HA mode. 
"/admin/audits",
"/admin/purge", 
"/admin/expimp/audit", 
"/admin/metrics", 
"/admin/server", 
"/admin/audit/"
This is because these apis need activated type registery, which is not initialized on server running in Passive mode. Expected behaviour was decided to redirect them to Active server as we do for followinf APIs
"/admin/export", 
"/admin/import", 
"/admin/importfile"


Diffs
-----

  webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java 2c28aafc4 
  webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java d7ae0f2fe 


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


Testing
-------

Manual testing was done.
Unit test was modifies to cover additional APIS


Thanks,

Deep Singh


Re: Review Request 73062: ATLAS-4049: Issue with few /admin APIs when hit on PASSIVE Atlas instance in HA mode

Posted by Ashutosh Mestry via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73062/#review222283
-----------------------------------------------------------


Ship it!




Ship It!

- Ashutosh Mestry


On Dec. 3, 2020, 6:05 p.m., Deep Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73062/
> -----------------------------------------------------------
> 
> (Updated Dec. 3, 2020, 6:05 p.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-4049
>     https://issues.apache.org/jira/browse/ATLAS-4049
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> Following list of admin APIs failed to respond by passive server in HA mode. 
> "/admin/audits",
> "/admin/purge", 
> "/admin/expimp/audit", 
> "/admin/metrics", 
> "/admin/server", 
> "/admin/audit/"
> This is because these apis need activated type registery, which is not initialized on server running in Passive mode. Expected behaviour was decided to redirect them to Active server as we do for followinf APIs
> "/admin/export", 
> "/admin/import", 
> "/admin/importfile"
> 
> 
> Diffs
> -----
> 
>   webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java 2c28aafc4 
>   webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java d7ae0f2fe 
> 
> 
> Diff: https://reviews.apache.org/r/73062/diff/1/
> 
> 
> Testing
> -------
> 
> Manual testing was done.
> Unit test was modifies to cover additional APIS
> 
> 
> Thanks,
> 
> Deep Singh
> 
>


Re: Review Request 73062: ATLAS-4049: Issue with few /admin APIs when hit on PASSIVE Atlas instance in HA mode

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


Ship it!




Ship It!

- Sarath Subramanian


On Dec. 3, 2020, 10:05 a.m., Deep Singh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73062/
> -----------------------------------------------------------
> 
> (Updated Dec. 3, 2020, 10:05 a.m.)
> 
> 
> Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.
> 
> 
> Bugs: ATLAS-4049
>     https://issues.apache.org/jira/browse/ATLAS-4049
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> Following list of admin APIs failed to respond by passive server in HA mode. 
> "/admin/audits",
> "/admin/purge", 
> "/admin/expimp/audit", 
> "/admin/metrics", 
> "/admin/server", 
> "/admin/audit/"
> This is because these apis need activated type registery, which is not initialized on server running in Passive mode. Expected behaviour was decided to redirect them to Active server as we do for followinf APIs
> "/admin/export", 
> "/admin/import", 
> "/admin/importfile"
> 
> 
> Diffs
> -----
> 
>   webapp/src/main/java/org/apache/atlas/web/filters/ActiveServerFilter.java 2c28aafc4 
>   webapp/src/test/java/org/apache/atlas/web/filters/ActiveServerFilterTest.java d7ae0f2fe 
> 
> 
> Diff: https://reviews.apache.org/r/73062/diff/1/
> 
> 
> Testing
> -------
> 
> Manual testing was done.
> Unit test was modifies to cover additional APIS
> 
> 
> Thanks,
> 
> Deep Singh
> 
>