AbsaOSS / AbsaOSS/enceladus

Improve error message in Spark jobs if MongoDB is down

Đang mở
#999 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Conformance feature priority: undecided Standardization
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.