2.1.5,jdbc使用loadbalance后出现连接不上doris的现像

Viewed 69

doris 2.1.5
jdbc 8.0
3个fe节点、3个be节点、fe和be 混合部署
应用程序使用 hikari 连接池,并使用 loadbalance 方式,如:jdbc:jdbc:mysql:loadbalance://172.xx.xx.xx:9030,172.xx.xx.xx:9030,172.xx.xx.xx:9030/db1?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true&rewriteBatchedStatements=true&autoReconnect=true
我在多次重启 3 个节点的 fe 和 be之后出现 客户端完全连不上doris的情况。
复现方式:
1、3 个节点,依次重启节点1的fe和 be、节点2、节点3
2、重复第1步8次之后发现应用程序完全连接不上doris:应用程序没有QPS并报数据源连接超时、doris审计日志也没有日志输出。

2 Answers

连接不上doris可以看看fe.log 这里面的报错是什么,还有你的程序输出的报错是什么

我从fe.log中没有发现有用的信息。
应用程序的报错信息为:
Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: HikariPool-2 - Connection is not available, request timed out after 30000ms. org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: HikariPool-2 - Connection is not available, request timed out after 30000ms.