Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.5.2
-
None
-
None
Description
PooledIOService constructors need a connection to check when features are available. However it uses connectionPool.Connections.FirstOrDefault which can return null and it's not null-checked.
It should instead use connectionPool.Aquire which can manage the creation of a connection if required, where FirstOrDefault expects some other code to create a connection.
Attachments
For Gerrit Dashboard: NCBC-1579 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
85452,2 | NCBC-1579: Use ConnectionPool.Aquire in PooledIOService constructors | master | couchbase-net-client | Status: MERGED | +2 | +1 |
85523,3 | NCBC-1580: Fix failing unit tests | master | couchbase-net-client | Status: MERGED | +2 | +1 |