Comments (5)
I can provide a PR to fix this as long as we decide on which of the two solutions you would like to use. Maybe @mosabua can chime in with a preference or route to the right folks?
from trino-gateway.
Hello, any ETA for this? It seems like even setting externalUrl
to the gateway URL has no effect. It is probably using the backend URL anyway https://github.com/trinodb/trino-gateway/blob/49c5c82dbc18a50b9104d001917dc3139088a0da/webapp/src/components/history.tsx#L57C30-L57C47
from trino-gateway.
This issue is a bit complicated. Currently, we only store the backend_url
in the query history table. Both backend_url
and external_url
can change at any time. This can lead to problems when the URLs are changed and the old backend_url
in the query history no longer matches with the current setting.
Storing the foreign key gateway_backend.name
in the query history table could solve the issue. We can get the latest backend_url
and external_url
for the cluster. For audit and debugging purposes, backend_url
should also be kept for reference.
CREATE TABLE IF NOT EXISTS gateway_backend (
name VARCHAR(256) PRIMARY KEY,
routing_group VARCHAR (256),
backend_url VARCHAR (256),
external_url VARCHAR (256),
active BOOLEAN
);
CREATE TABLE IF NOT EXISTS query_history (
query_id VARCHAR(256) PRIMARY KEY,
query_text VARCHAR (256),
created bigint,
backend_url VARCHAR (256),
user_name VARCHAR(256),
source VARCHAR(256)
);
from trino-gateway.
@oneonestar thanks for detailed response. Do we have any ETA for that fix?
from trino-gateway.
It requires a database schema update and we haven't done that before...
I can bring up this issue in the next dev meeting to see how we can handle it.
from trino-gateway.
Related Issues (20)
- Fix Indentation for Pod Annotations in deployment.yaml HOT 1
- Same DNS name for multiple clusters
- Docker compose warning HOT 2
- Quickstart docker trino images lacks process-forward conf HOT 1
- `system.runtime.kill_query` queries not routed to correct cluster
- `requestAnalyzer` is non functional
- trino-gateway how to skip backend tls with invalidate certificates HOT 3
- helm deployment - invalid choice: '/etc/gateway/config.yaml' (choose from 'server', 'check') HOT 5
- `appVersion` in Chart.yaml should be updated with each release
- Use and require Java 22
- Sticky routing based on next-uri fields HOT 3
- HTTP 500 Error: NoSuchElementException When Adhoc Cluster is Busy HOT 2
- Support JWT authentication provided by request header HOT 1
- lower-case headers passed on to trino gateway is not handled case insensitively HOT 5
- Support HTTP/2 requests HOT 2
- Make HTTP request body re-readable via HttpServletRequest HOT 4
- Set resourceGroupQueryType as String not Optional HOT 1
- Honor externalUrl in new UI HOT 1
- Release version 11
- Support and test HTTP/2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino-gateway.