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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.6
    • Component/s: library
    • Labels:

      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

          Hide
          jmorris Jeff Morris added a comment -

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

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

          Resolved w/SASL refactoring

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

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.