[ https://issues.apache.org/jira/browse/ATLAS-4049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246871#comment-17246871 ]
ASF subversion and git services commented on ATLAS-4049: -------------------------------------------------------- Commit e464779787eebfec65b486d26508659f593a4abd in atlas's branch refs/heads/branch-2.0 from Deep Singh [ https://gitbox.apache.org/repos/asf?p=atlas.git;h=e464779 ] ATLAS-4049: Few admin apis were not redirected to Active server in HA mode Signed-off-by: Ashutosh Mestry <ames...@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)