Skip to content

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

@chen1220502052

Description

@chen1220502052

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions