fuweng11 commented on code in PR #11378: URL: https://github.com/apache/inlong/pull/11378#discussion_r1808411476
########## inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/oceanbase/OceanBaseJdbcUtils.java: ########## @@ -71,6 +71,9 @@ public static Connection getConnection(String url, String user, String password) */ private static Connection establishDatabaseConnection(String url, String user, String password) throws Exception { Connection conn; + if (StringUtils.isBlank(url) || !url.startsWith(OCEANBASE_JDBC_PREFIX)) { + throw new Exception("OceanusBase URL was invalid, it should start with jdbc:oceanbase"); Review Comment: Fixed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org