Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1022

'lockmode' required instead of 'lock_mode' in Cluster.connect **kwargs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None
    • 1

    Attachments

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

      Activity

        Tony Bedford Tony Bedford added a comment -

        Also ran into this issue:

        Upsert CAS: 
        <Couldn't lock. If LOCKMODE_WAIT was passed, then this means that something has gone wrong internally. Otherwise, this means you are using the Connection object from multiple threads. This is not allowed (without an explicit lockmode=LOCKMODE_WAIT constructor argument, C Source=(src/oputil.c,668)>
        127.0.0.1 - - [27/Sep/2020 11:35:25] "POST /webhooks/event HTTP/1.1" 200 -
        

        My code is:

        cluster = Cluster('couchbase://localhost', ClusterOptions( PasswordAuthenticator('Administrator', db_password)), lockmode=2)
        

        See also forum item.

        Tony Bedford Tony Bedford added a comment - Also ran into this issue: Upsert CAS: <Couldn't lock. If LOCKMODE_WAIT was passed, then this means that something has gone wrong internally. Otherwise, this means you are using the Connection object from multiple threads. This is not allowed (without an explicit lockmode=LOCKMODE_WAIT constructor argument, C Source=(src/oputil.c,668)> 127.0.0.1 - - [27/Sep/2020 11:35:25] "POST /webhooks/event HTTP/1.1" 200 - My code is: cluster = Cluster( 'couchbase://localhost' , ClusterOptions( PasswordAuthenticator( 'Administrator' , db_password)), lockmode = 2 ) See also forum item .

        People

          jared.casey Jared Casey
          Ellis.Breen Ellis Breen
          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