Jenny Liu created FINERACT-2959:
-----------------------------------
Summary: Requests are answered with HTTP 500 after 20 s when the
database is down; should be 503 with Retry-After
Key: FINERACT-2959
URL: https://issues.apache.org/jira/browse/FINERACT-2959
Project: Apache Fineract
Issue Type: Bug
Reporter: Jenny Liu
When the database is unreachable, the first database access of a request is in
TenantAwareBasicAuthenticationFilter (loading the tenant), which runs before
the JAX-RS layer. The exception escapes the filter and the container answers
HTTP 500 after the 20 s connection pool timeout. The API should answer HTTP 503
with a Retry-After header, so clients and load balancers can tell an outage
from a bug.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)