AbsaOSS / AbsaOSS/enceladus

Improve error message in Spark jobs if MongoDB is down

Aperta
#999 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Conformance feature priority: undecided Standardization
Lingua principale
Scala
Stelle
33
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.