Skip to content
Snippets Groups Projects
Commit 67f4055f authored by Yauheni Lesnikau's avatar Yauheni Lesnikau
Browse files

Merge branch 'no_retry_storage' into 'master'

No retry on storage 500

See merge request !454
parents e8a23c6b c21fe854
No related branches found
No related tags found
1 merge request!454No retry on storage 500
Pipeline #167291 failed
......@@ -116,6 +116,10 @@ public class StorageServiceImpl implements StorageService {
throw new AppException(HttpStatus.SC_NOT_FOUND, "Invalid request", "Storage service returned empty response");
}
if (response.getResponseCode() == 500) {
throw new AppException(RequestStatus.NO_RETRY, "Server error", String.format("Storage service error: %s", response.getBody()));
}
Records records = null;
try {
records = this.objectMapper.readValue(bulkStorageData, Records.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment