Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-5701

mc_bin_client method getRev doesnt have a consistant behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 2.0-beta
    • None
    • couchbase-bucket
    • Security Level: Public
    • None

    Description

      I am trying to fix the xdcr tests to run for more than 1000 items for whic I am using mc_bin_client.getRev function which is not behaving consistantly.

      While running the following code snippet , I get the error "mc_bin_client.MemcachedError: Memcached error #1 'Not found': for vbucket :29 ".

      mc = MemcachedClient("127.0.0.1",12000)
      mc.vbucket_count = 64
      mc.set("a", 0 , 0 , "1")
      mc.set("b", 0 , 0 , "2")
      mc.set("c", 0 , 0 , "3")
      mc.set("d", 0 , 0 , "4")
      mc.set("d", 0 , 0 , "5")
      print mc.getRev("a")
      #print mc.getRev("b")
      #print mc.getRev("c")

      Stack Trace is as following

      File "<stdin>", line 1, in <module>
      File "MyTests.py", line 45, in <module>
      MCClientTest.test2()
      File "MyTests.py", line 39, in test2
      print mc.getRev("a")
      File "mc_bin_client.py", line 226, in getRev
      (meta_type, flags, meta_data) = self.getMeta(key)
      File "mc_bin_client.py", line 221, in getMeta
      parts=self._doCmd(memcacheConstants.CMD_GET_META, key, '')
      File "mc_bin_client.py", line 128, in _doCmd
      return self._handleSingleResponse(opaque)
      File "mc_bin_client.py", line 121, in _handleSingleResponse
      cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
      File "mc_bin_client.py", line 117, in _handleKeyedResponse
      raise MemcachedError(errcode, rv)
      mc_bin_client.MemcachedError: Memcached error #1 'Not found': for vbucket :29 to mc 127.0.0.1:12000

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            suhailkhaki Suhail Khaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty