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

GetWithLock and GetAndLock Doc API is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.11
    • Fix Version/s: 2.4.1
    • Component/s: library
    • Labels:
      None

      Description

      While reviewing the source code I noticed that this Doc API is incorrect:

              /// <remarks>An expiration of 0 is treated as an infinite.</remarks>
      

      When an expiry of 0 is passed to the getandlock operation, the server will not hold the lock for infinite, instead it will lock it for the server side default time which is 15 seconds:

      $ cbstats localhost:11210 all | grep getl
       ep_getl_default_timeout:                               15
       ep_getl_max_timeout:                                   30
      

        Attachments

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

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              mike.goldsmith Michael Goldsmith
              Reporter:
              pvarley Patrick Varley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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.