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

链接获取后不会自动释放链接,然后报错连接池没有空闲链接,程序卡死 #379

Closed
vsalw opened this issue Sep 15, 2017 · 2 comments

Comments

@vsalw
Copy link

vsalw commented Sep 15, 2017

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Jdbc do you using?

1.5.3和1.5.4快照版

Expected behavior

正常应该会自动获取链接,释放链接,但是实际没有,链接全部是busy....

Actual behavior

不会释放链接,程序卡死

Steps to reproduce the behavior

项目启动后随便查询数据库,大概到获取到第100个就获取不到了,一共是一百个链接,下一个查询就会卡死,程序报错没有空闲链接

Please provide the reproduce example codes (such as github link) if possible.

我是使用这个demo发现还是存在这个问题的,你可以试试
https://github.com/Max010230/ShardingTest

terrymanu added a commit that referenced this issue Sep 18, 2017
@terrymanu
Copy link
Member

原因是:使用Mybatis时框架调用Connection.getMetaData()时释放连接不正确导致的问题

@terrymanu
Copy link
Member

fixed at 1.5.4

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

No branches or pull requests

2 participants