Gergely Harmadás created ATLAS-4994:
---------------------------------------
Summary: The Atlas client should retry on HTTP 500 errors
Key: ATLAS-4994
URL: https://issues.apache.org/jira/browse/ATLAS-4994
Project: Atlas
Issue Type: Improvement
Reporter: Gergely Harmadás
Currently when bootstrapping the Atlas model, it's possible that the server
returns a 500 error, for example:
{code:java}
Caused by: org.apache.atlas.AtlasServiceException: Metadata service API
org.apache.atlas.AtlasClientV2$API_V2@145d13dc failed with status 500 (Internal
Server Error) Response Body
({"errorCode":"ATLAS-500-00-005","errorMessage":"Failed to get the lock;
another type update might be in progress. Please try again"})
{code}
which should be retried.
This issue manifested in the atlas client within various components not
functioning correctly later on (since it never managed to get initialized) with
the error messages
{code:java}
05:00:59.098 INFO [org.hw.qe.testng.ext.customlogging.TestNGListener]
[TestNG-tests-1] com.cloudera.qe.apiclient.model.ApiClientException:
{"errorCode":"ATLAS-400-00-00A","errorMessage":"schema_metadata_info:
Unknown/invalid typename"}
{code}
h2. Definition of done
* Change the Atlas client to include retries for 500 errors too (503 errors
are already retried)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)