File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
main/java/io/trino/gateway/ha/clustermonitor
test/java/io/trino/gateway/ha/security Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ public ClusterStats monitor(ProxyBackendConfiguration backend)
7878 properties .setProperty ("SSL" , String .valueOf (parsedUrl .getProtocol ().equals ("https" )));
7979 }
8080 catch (MalformedURLException e ) {
81- log .error ("could not parse backend url %s " , url );
82- return clusterStats . build (); // TODO Invalid configuration should fail
81+ log .error ("Invalid backend URL configuration: %s " , url );
82+ throw new IllegalArgumentException ( "Invalid backend URL: " + url , e );
8383 }
8484
8585 try (Connection conn = DriverManager .getConnection (jdbcUrl , properties );
Original file line number Diff line number Diff line change 1717import com .fasterxml .jackson .databind .JsonNode ;
1818import com .fasterxml .jackson .databind .ObjectMapper ;
1919import com .google .common .collect .ImmutableMap ;
20+ import io .airlift .log .Logger ;
2021import io .trino .gateway .ha .HaGatewayLauncher ;
2122import io .trino .gateway .ha .HaGatewayTestUtils ;
2223import okhttp3 .Cookie ;
6263@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
6364final class TestOIDC
6465{
66+ private static final Logger log = Logger .get (TestOIDC .class );
67+
6568 private static final int TTL_ACCESS_TOKEN_IN_SECONDS = 5 ;
6669 private static final int TTL_REFRESH_TOKEN_IN_SECONDS = 15 ;
6770
@@ -158,7 +161,7 @@ void setup()
158161 File testConfigFile =
159162 HaGatewayTestUtils .buildGatewayConfig ("auth/oauth-test-config.yml" , additionalVars );
160163 String [] args = {testConfigFile .getAbsolutePath ()};
161- System . out . println ( ROUTER_PORT );
164+ log . info ( "Starting gateway on port: %d" , ROUTER_PORT );
162165 HaGatewayLauncher .main (args );
163166 }
164167
You can’t perform that action at this time.
0 commit comments