trino-gateway
trino-gateway copied to clipboard
Add a cache for GatewayBackend to HaGatewayManager
Description
Currently, Trino Gateway stops routing queries when the database is unavailable.
This PR adds a cache of GatewayBackend
to the HaGatewayManager
, ensuring that queries can still be routed even when the database is unavailable.
The cache is read-only, so update operations to GatewayBackend
will still fail if the database is unavailable.
Release notes
( x) This is not user-visible or is docs only, and no release notes are required.