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

change druid datasource breakAfterAcquireFailure default value is false #2360

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

KANLON
Copy link
Contributor

@KANLON KANLON commented Jan 7, 2025

修改 BreakAfterAcquireFailure 参数为false,以免因为网络原因或者数据库挂了一会,导致链接永远都用不了,如果不修改,有可能数据源因为网络波动原因而一直用不了

获取连接失败将会引起所有等待获取连接的线程异常,但是数据源仍有效的保留,并在下次调用getConnection()的时候继续尝试获取连接

.如果设为true,那么尝试指定次数后获取连接失败后该数据源将申明已经断开并永久关闭.默认为false

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

Successfully merging this pull request may close these issues.

1 participant