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

Fix dependency on connection pooling in Server class

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.4.0
    • 2.4.6
    • library

    Description

      The Server class (and a few other places like SaslFactory) have behavior which depends upon there being more than one connection available. In these cases the code will violate Law of Demeter and call Acquire() off of the ConnectionPool property of the IOService implementation. The problem is that muxio will call Acquire() when MultiplexingIOService ctor, emptying the pool if the MaxSize/MinSize is 1. In order to work correctly, the MaxSize must be at least 2.

      The work-around is to just use the default MaxSize/MinSize or whatever values that these settings have as long as the are no lower than the defaults.

      Attachments

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

        Activity

          jmorris Jeff Morris added a comment -

          With the refactoring done in 2.4.5, this is probably not an issue anymore.

          jmorris Jeff Morris added a comment - With the refactoring done in 2.4.5, this is probably not an issue anymore.
          jmorris Jeff Morris added a comment -

          Resolved w/SASL refactoring

          jmorris Jeff Morris added a comment - Resolved w/SASL refactoring

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            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