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

Setting a non-existant key from VBucketAwareCouchbaseClient throws an exception instead of returning None


    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Security Level: Public
    • Labels:


      The docs don't match the code. We need to determine which one is correct (or which route we'd prefer taking), write some tests, and make the docs and code match.

      Reported via http://disq.us/78w7hy?imp=7fd22085-2821-40da-9b3f-0e5134554a91&thread=574422822&zone=email_notification&event=shortener_click
      Using couchbase-python-client v0.6.0 from the MB 2.0 DP SDK downloads, the above doesn't seem to be true. I am seeing the following exception thrown (instead of None being returned) when trying to get a non-existant key from a VBucketAwareCouchbaseClient:

      couchbase.couchbaseclient.MemcachedError: Memcached error #1: Not found

      Also, the get function doesn't return object but a tuple, with the object is in position 2.

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


        BigBlueHat Benjamin Young created issue -
        ingenthr Matt Ingenthron made changes -
        Field Original Value New Value
        Assignee Benjamin Young [ bigbluehat ] Matt Ingenthron [ ingenthr ]
        ingenthr Matt Ingenthron made changes -
        Assignee Matt Ingenthron [ ingenthr ] Mark Nunberg [ mnunberg ]
        mnunberg Mark Nunberg made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 0.9.0 [ 10373 ]
        Resolution Fixed [ 1 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 17157 ] Couchbase SDK Workflow [ 44561 ]


          • Assignee:
            mnunberg Mark Nunberg
            BigBlueHat Benjamin Young
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes