【详述】Druid连接池查询starrocks偶现报错Communications link failure
【背景】
【业务影响】暂无
【是否存算分离】
【StarRocks版本】3.1.15
【集群规模】例如:3fe+3be
错误日志:
org.springframework.dao.RecoverableDataAccessException:
Error querying database. Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1,863 milliseconds ago. The last packet sent successfully to the server was 1,919 milliseconds ago.
sr配置:

连接池配置:
starrocks-datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
initial-size: 10
min-idle: 20
max-active: 5000
max-wait: 60000
time-between-eviction-runsMillis: 60000
min-evictable-idle-timeMillis: 300000
validation-query: select 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-open-prepared-statements: 100
max-pool-prepared-statement-per-connection-size: 20
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
keep-alive: true