You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/12/09 22:28:00 UTC

[jira] [Commented] (ATLAS-4049) Issue with few /admin APIs when hit on PASSIVE Atlas instance in HA mode

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

ASF subversion and git services commented on ATLAS-4049:
--------------------------------------------------------

Commit 10b6d142e479e0b2a27be6a7dd8b9f82a4d3f723 in atlas's branch refs/heads/master from Deep Singh
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=10b6d14 ]

ATLAS-4049: Few admin apis were not redirected to Active server in HA mode

Signed-off-by: Ashutosh Mestry <am...@cloudera.com>


> Issue with few /admin APIs when hit on PASSIVE Atlas instance in HA mode
> ------------------------------------------------------------------------
>
>                 Key: ATLAS-4049
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4049
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 2.1.0
>            Reporter: Umesh Padashetty
>            Assignee: Deep Singh
>            Priority: Critical
>
> Atlas supports the following types of /admin APIs 
>  # /version
>  # /audits
>  # /purge
>  # /metrics
>  # /status
>  # /export
>  # /import
>  # /patches
>  # /checkstate
>  # /activeSearches/\{id}
>  # /activeSearches
>  # /audit/\{auditGuid}/details
>  # /expimp/audit
>  # /server/\{serverName}
>  # /importfile
>  # /stack
>  # /session
> Observing issues when these APIs are hit on PASSIVE Atlas instance in HA mode 
> Following APIs do not have any issue, when hit on ACTIVE or PASSIVE instance, they produce the same output 
>  # /version
>  # /status
>  # /session
>  # /stack
>  # /patches
>  # /activeSearches
>  # /activeSearches/\{id}
>  # /checkstate
> But the following APIs have issue, when hit on the PASSIVE instance, they either produce partial information, or they throw an ERROR.
>  * /audits
>  ** Error:
> {code:java}
> {"errorCode":"ATLAS-400-00-00A","errorMessage":"__AtlasAuditEntry: Unknown/invalid typename"}  {code}
>  *  /purge
>  ** Error:
> {code:java}
> {"errorCode":"ATLAS-400-00-014","errorMessage":"Type ENTITY with name aws_s3_v2_object does not exist"}  {code}
>  * /export (I understand this is by design, so can be ignored?)
>  ** Error:
> {code:java}
> 2020-11-24 18:06:59,250 ERROR - [etp402695541-112:] ~ URL not supported in HA mode: /api/atlas/admin/export (ActiveServerFilter:120) 2020-11-24 18:06:59,252 INFO - [etp402695541-112:] ~ Not active. Redirecting to https://quasar-jfuidh-4.quasar-jfuidh.root.hwx.site:31443/api/atlas/admin/export (ActiveServerFilter:172)  {code}
>  * /import (I understand this is by design, so can be ignored?)
>  ** Error:
> {code:java}
> 2020-11-24 18:07:22,702 ERROR - [etp402695541-118:] ~ URL not supported in HA mode: /api/atlas/admin/import (ActiveServerFilter:120) 2020-11-24 18:07:22,704 INFO - [etp402695541-118:] ~ Not active. Redirecting to https://quasar-jfuidh-4.quasar-jfuidh.root.hwx.site:31443/api/atlas/admin/import (ActiveServerFilter:172)  {code}
>  * /importfile (I understand this is by design, so can be ignored?)
>  ** Error:
> {code:java}
> 2020-11-24 18:07:22,702 ERROR - [etp402695541-118:] ~ URL not supported in HA mode: /api/atlas/admin/import (ActiveServerFilter:120) 2020-11-24 18:07:22,704 INFO - [etp402695541-118:] ~ Not active. Redirecting to https://quasar-jfuidh-4.quasar-jfuidh.root.hwx.site:31443/api/atlas/admin/import (ActiveServerFilter:172)  {code}
>  * /audit/\{auditGuid}/details
>  ** Error:
> {code:java}
> { "errorCode": "ATLAS-404-00-001", "errorMessage": "Given typename __AtlasAuditEntry was invalid" }  {code}
>  * /server/\{serverName}
>  ** Error:
> {code:java}
> There was an error processing your request. It has been logged (ID a52953c92b609fb8). 2020-11-24 18:05:32,259 ERROR - [etp402695541-70 - 47fbcd4a-e547-4bba-b12b-af018e33a893:] ~ Error handling a request: a52953c92b609fb8 (ExceptionMapperUtil:32) java.lang.NullPointerException  {code}
>  * /metrics
>  ** Error:
> {code:java}
> Returns only partial information  {code}
>  * /expimp/audit
>  ** Error:
> {code:java}
> { "errorCode": "ATLAS-400-00-00A", "errorMessage": "__ExportImportAuditEntry: Unknown/invalid typename" }  {code}
> The case when an /admin API is hit on the PASSIVE instance, we should either return a proper response, or we should redirect the request to the ACTIVE instance. Providing partial information/error seems to be incorrect.



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