litellm/tests/test_litellm/proxy/db
Ishaan Jaffer 6b818ab3a1 fix(proxy): add is_database_transport_error for reconnect logic, restore broad is_database_connection_error
#21706 narrowed is_database_connection_error to only match PrismaErrors
with connectivity keywords. That was correct for the reconnect use case
but broke the allow_requests_on_db_unavailable behavior as a side effect.

Fix: add is_database_transport_error with the narrow keyword-gated check
and use it in the two reconnect call sites (auth_checks key lookup retry,
utils.py watchdog). Restore is_database_connection_error to its original
broad behavior (any PrismaError) so allow_requests_on_db_unavailable works
correctly.

Update the tests added in #21706 to assert against is_database_transport_error
instead of is_database_connection_error.
2026-02-21 10:51:18 -08:00
..
db_transaction_queue test_queue_flush_limit 2026-02-14 15:34:45 -08:00
mcp_server build(VLLM-Passthrough-with-loadbalancing-support-(enables-using-model-list-for-VLLM-/classify-endpoint)): Closes #11205 2025-05-31 09:00:04 -07:00
test_check_migration.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_db_spend_update_writer.py [Feature] Track key last active timestamp 2026-02-18 23:11:58 -08:00
test_exception_handler.py fix(proxy): add is_database_transport_error for reconnect logic, restore broad is_database_connection_error 2026-02-21 10:51:18 -08:00
test_prisma_client.py test_recreate_prisma_client_successful_disconnect 2025-08-01 15:38:48 -07:00
test_prisma_self_heal.py fix(proxy): add is_database_transport_error for reconnect logic, restore broad is_database_connection_error 2026-02-21 10:51:18 -08:00
test_rds_iam_token_expiry.py fix: proactive RDS IAM token refresh to prevent 15-min connection failed (#18795) 2026-01-08 23:53:36 +05:30