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

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.4.1
    • 2.3.11
    • library
    • 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

          People

            mike.goldsmith Michael Goldsmith
            pvarley Patrick Varley (Inactive)
            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