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

Mysql主动断开或者有路由器主动断开Connection,导致KeepAlive Ping失效,从而造成keepAlive机制完全失效,版本是1.1.24,最新版本1.2.5也有类似问题 #4227

Closed
chen1220502052 opened this issue Apr 6, 2021 · 1 comment
Labels
Milestone

Comments

@chen1220502052
Copy link

Mysql-5.6.46-log 主动kill connection
MySqlValidConnectionChecker isValidConnection 报错
image
Druid-Destory线程会认为改connection正常,主要由于以下代码
image
随后以后正常的数据库连接的Ping检查都会抛异常InvocationTargetException,导致keepAlive失效

请问您们这块的逻辑是出于什么原因,这样设计的呢,我应该如何避免这类问题呢,谢谢浏览的我的问题

@chen1220502052 chen1220502052 changed the title Mysql主动断开或者有路由器主动断开Connection,导致KeepAlive Ping失效,从而造成keepAlive机制完全失效 Mysql主动断开或者有路由器主动断开Connection,导致KeepAlive Ping失效,从而造成keepAlive机制完全失效,版本是1.1.24,最新版本1.2.5也有类似问题 Apr 6, 2021
@chen1220502052
Copy link
Author

druid 配置:
image

@wenshao wenshao added this to the 1.2.6 milestone Apr 18, 2021
@alibaba alibaba deleted a comment from Chris2018998 Apr 18, 2021
@wenshao wenshao added the Bug label Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants