AbsaOSS / AbsaOSS/enceladus

Improve error message in Spark jobs if MongoDB is down

Open
#999 0 comments 0 reactions 0 assignees View on GitHub
Conformance feature priority: undecided Standardization
Dominant language
Scala
Stars
33
Forks
16
PR merge metrics
No merged PRs in 30d

Description

## Background
Currently, if MongoDB is down and Menas is up, Standardization and Conformance Jobs report an ambiguous error:

```
Exception in thread "main" za.co.absa.enceladus.dao.DaoException:
Server returned HTTP response code: 500 for Menas URL:
```

## Feature
Improve the error message to make it easier to investigate such issues.

## Proposed Solution [Optional]
One of the ideas proposed by @GeorgiChochov is to change the status code to `503 - Service Unavailable` for MongoDB connection issues.

Menas can provide additional information on what is unavailable in an error message. Standardization and Conformance could add the message in the exception.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.