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

Cannot Set UseEnhancedDurability To True Without Defining A ConnectionPool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.0
    • 2.2.8
    • library
    • None

    Description

      The following configuration will always result in the in-memory configuration having UseEnhancedDurability = false:

        <couchbase enableConfigHeartBeat="false">
            <servers>
              <add uri="http://localhost:8091"></add>
            </servers>
            <buckets>
              <add name="beer-sample" useEnhancedDurability="true"></add>
            </buckets>
          </couchbase>
      

      If you include a connectcionPool section within the bucket, then the setting will apply:

        <couchbase enableConfigHeartBeat="false">
            <servers>
              <add uri="http://localhost:8091"></add>
            </servers>
            <buckets>
              <add name="beer-sample" useEnhancedDurability="true">
                <connectionPool name="default" />
              </add>
            </buckets>
          </couchbase>
      

      The reason is that without a connectionPool section, the default connectionPool is used instead. This connectionPool always has UseEnhancedDurability = false. This overrides the previously loaded value of true for the bucket.

      https://github.com/couchbase/couchbase-net-client/blob/2.2.8/Src/Couchbase/Configuration/Client/ClientConfiguration.cs#L297

      Attachments

        Issue Links

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

          Activity

            People

              jmorris Jeff Morris
              btburnett3 Brant Burnett
              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