trino-gateway icon indicating copy to clipboard operation
trino-gateway copied to clipboard

Add a cache for GatewayBackend to HaGatewayManager

Open choiwaiyiu opened this issue 4 months ago • 2 comments

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.

choiwaiyiu avatar Oct 02 '24 04:10 choiwaiyiu