Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testConnectionInternal为什么判断的是mysqlIdleMillis >= timeBetweenEvictionRunsMillis ?? #3908

Open
zenglianghn opened this issue Aug 14, 2020 · 1 comment

Comments

@zenglianghn
Copy link

zenglianghn commented Aug 14, 2020

druid版本1.1.23
mysql-connector-java版本8.0.16
类#方法:com.alibaba.druid.pool.DruidAbstractDataSource#testConnectionInternal(com.alibaba.druid.pool.DruidConnectionHolder, java.sql.Connection)
疑惑的代码:
image
配置:
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
问题:超过1分钟,连接被回收,并输出了如下日志。期望超过minEvictableIdleTimeMillis的配置时间才被回收。
image

@lizongbo
Copy link
Collaborator

而且这个日志还是ERROR级别的,很影响运维监控日志。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants