Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1579

PooledIOService constructor should use Aquire to get connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.3
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mike.goldsmith Michael Goldsmith
            mike.goldsmith Michael Goldsmith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty