AbsaOSS / AbsaOSS/enceladus

Improve error message in Spark jobs if MongoDB is down

オープン
#999 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Conformance feature priority: undecided Standardization
主要言語
Scala
スター
33
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。