File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Gateway API
2
2
3
+ Please note that if there are duplicate ` proxyTo ` URLs in the backend configuration,
4
+ the RoutedTo in the Query History page might not be shown correctly.
5
+
3
6
## Add or update a backend
4
7
5
8
``` shell
Original file line number Diff line number Diff line change @@ -80,8 +80,13 @@ JAVA_OPTS="-Dhttp-server.process-forwarded=true"
80
80
81
81
# Start Trino servers
82
82
for i in 1 2; do
83
- docker run --name trino$i -d -p 808$i :8080 \
84
- -e JAVA_TOOL_OPTIONS=" $JAVA_OPTS " $TRINO_IMAGE
83
+ PORT=808$i
84
+ if ! lsof -i:$PORT > /dev/null; then
85
+ docker run --name trino$i -d -p $PORT :8080 \
86
+ -e JAVA_TOOL_OPTIONS=" $JAVA_OPTS " $TRINO_IMAGE
87
+ else
88
+ echo " Warning: Port $PORT is already in use. Skipping trino$i ."
89
+ fi
85
90
done
86
91
87
92
# Add Trino servers as Gateway backends
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export function History() {
122
122
} } >
123
123
< Column title = "QueryId" dataIndex = "queryId" key = "queryId" render = { linkQueryRender } />
124
124
< Column title = "RoutingGroup" dataIndex = "routingGroup" key = "routingGroup" render = { routingGroupRender } />
125
- < Column title = "RoutedTo " dataIndex = "backendUrl" key = "backendUrlName" render = { ( text : string ) => < Text > { backendMapping [ text ] } </ Text > } />
125
+ < Column title = "Name " dataIndex = "backendUrl" key = "backendUrlName" render = { ( text : string ) => < Text > { backendMapping [ text ] } </ Text > } />
126
126
< Column title = "RoutedTo" dataIndex = "backendUrl" key = "backendUrl" render = { linkRender } />
127
127
< Column title = "User" dataIndex = "user" key = "user" />
128
128
< Column title = "Source" dataIndex = "source" key = "source" />
You can’t perform that action at this time.
0 commit comments