Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-841

Method GetAndLock() Doesn't Fail As Expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 4.2.2
    • 3.2.2
    • extension
    • None
    • PHP 7.4 + Couchbase 3.2.2
    • 1
    • SDK32, SDK35, SDK37

    Description

      A locked item can't be locked again when the lock is not released nor expired. However, I noticed that method GetAndLock() doesn't work as expected under certain situation.

      Test code and instructions to reproduce the issue can be founder under GitHub repository https://github.com/deminy/couchbase3-issues. In the repository, test script issue-2-a.php works as expected, however, test script issue-2-b.php doesn't throw out an exception when locking a locked item.

      I assume that method getAndLock() should lock an item forever when the 2nd argument ($lockTime) is 0.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            deminy Demin Yin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty