[JAVA-1889] Connection Pool fails to release connection if openAsync fails Created: 15/Jul/15 Updated: 16/May/17 Resolved: 15/Jul/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Async, Connection Management |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Denis Orlov | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 8 |
||
| Attachments: |
|
| Case: | (copied to CRM) |
| Description |
|
Using async mongo driver I create replica set connection to mongo DB: ClusterSettings: ConnectionPoolSettings: SocketSettings: Issue: The main idea in my case, to setup read very small read time out and do not wait server response in case it is slow for the moment. But when last connection (only one for test case) gets TimeOut, ConcurrentPool doesn't release semaphore permit. Check attached logs |
| Comments |
| Comment by Jeffrey Yemin [ 16/Jul/15 ] |
|
Fix is now available in the 3.0.3 release. |
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Release the usage connection when failing in openAsync
|
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Handle null result in CommandHelper
|
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Release the usage connection when failing in openAsync
|
| Comment by Githook User [ 15/Jul/15 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Handle null result in CommandHelper
|
| Comment by Ross Lawley [ 15/Jul/15 ] |
|
Thanks dorlov - I've identified the issue and updated the title of the ticket. |
| Comment by Denis Orlov [ 15/Jul/15 ] |
|
Ross, test java class is committed. Unfortunately I couldn't provide you an access to our mongo db. |
| Comment by Ross Lawley [ 15/Jul/15 ] |
|
Thanks for reporting dorlov, I'm just going to try to reproduce now. If you have any test code that reproduces the issue that would help speed the issue on! Ross |