Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.1.0
-
None
-
None
Description
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:
{"errorCode":"ATLAS-400-00-00A","errorMessage":"__AtlasAuditEntry: Unknown/invalid typename"}
- Error:
- /purge
- Error:
{"errorCode":"ATLAS-400-00-014","errorMessage":"Type ENTITY with name aws_s3_v2_object does not exist"}
- Error:
- /export (I understand this is by design, so can be ignored?)
- Error:
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)
- Error:
- /import (I understand this is by design, so can be ignored?)
- Error:
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)
- Error:
- /importfile (I understand this is by design, so can be ignored?)
- Error:
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)
- Error:
- /audit/{auditGuid}/details
- Error:
{ "errorCode": "ATLAS-404-00-001", "errorMessage": "Given typename __AtlasAuditEntry was invalid" }
- Error:
- /server/{serverName}
- Error:
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
- Error:
- /metrics
- Error:
Returns only partial information
- Error:
- /expimp/audit
- Error:
{ "errorCode": "ATLAS-400-00-00A", "errorMessage": "__ExportImportAuditEntry: Unknown/invalid typename" }
- Error:
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.