Skip to content

Commit 54d3c37

Browse files
committed
address comment
1 parent ac28ac5 commit 54d3c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway-ha/src/main/java/io/trino/gateway/ha/router/BaseRoutingManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public ProxyBackendConfiguration provideBackendConfiguration(String routingGroup
112112
List<ProxyBackendConfiguration> backends = gatewayBackendManager.getActiveBackends(routingGroup).stream()
113113
.filter(backEnd -> isBackendHealthy(backEnd.getName()))
114114
.toList();
115-
if (backends.isEmpty() && strictRouting) {
115+
if (strictRouting && backends.isEmpty()) {
116116
throw new WebApplicationException(
117117
Response.status(NOT_FOUND)
118118
.entity(String.format("No healthy backends available for routing group '%s' under strict routing for user '%s'", routingGroup, user))

0 commit comments

Comments
 (0)