[JAVA-2027] Connection pool does not properly open connections when ensuring minimum pool size Created: 04/Nov/15  Updated: 13/Jan/16  Resolved: 20/Nov/15

Status: Closed
Project: Java Driver
Component/s: Connection Management
Affects Version/s: 3.1.0
Fix Version/s: 3.2.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-2086 MongoClientOptions.minConnectionsPerH... Closed

 Description   

The connection pool ensures the minimum pool size in a background thread by creating an instance of InternalConnection. But the background thread does not call InternalConnection.open to actually force it to connect and authenticate. It should.



 Comments   
Comment by Jeffrey Yemin [ 07/Dec/15 ]

The 3.2.0 driver, which contains a fix for this issue, has been released today.

Comment by Githook User [ 20/Nov/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2027: When ensuring minimum connection pool size, open the connection in addition to creating it. Otherwise, there's little benefit of ensuring the minimum size.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6acd53d42a5d9ae8914e3306ff3bf02bddf6a0f8

Generated at Thu Feb 08 08:56:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.