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

setWithMeta on an existing key returns key exists

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      This is part of the LWW test suite, there is a test which does a setWithMeta on an existing key. In 4.5.1 this test passes and it fails with 4.6.0-3411. The test runner test is:

       
      ./testrunner -i 4node.ini -t epengine.opschangecas.OpsChangeCasTests.test_cas_deleteMeta
       
      
      

      And the failure is:

       
      ======================================================================
      ERROR: test_cas_deleteMeta (epengine.opschangecas.OpsChangeCasTests)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "pytests/epengine/opschangecas.py", line 412, in test_cas_deleteMeta
          set_with_meta_resp = mc_active.set_with_meta(key, 0, 0, TEST_SEQNO, TEST_CAS, '123456789',vbucket_id)
        File "lib/mc_bin_client.py", line 299, in set_with_meta
          struct.pack(META_CMD_FMT, flags, exp, seqno, cas) )
        File "lib/mc_bin_client.py", line 139, in _doCmd
          return self._handleSingleResponse(opaque)
        File "lib/mc_bin_client.py", line 131, in _handleSingleResponse
          cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
        File "lib/mc_bin_client.py", line 127, in _handleKeyedResponse
          raise MemcachedError(errcode, rv)
      MemcachedError: Memcached error #2 'Exists':   for vbucket :299 to mc 172.23.106.25:11210
      

      The .ini file looks like, put your own IP in:

       
      [global]
      username:root
      password:couchbase
      port:8091
       
      [membase]
      rest_username:Administrator
      rest_password:password
       
      [servers]
      1:172.23.106.24
      2:172.23.106.25
      3:172.23.106.26
      4:172.23.106.27
       
      
      

      Let me know if more information is needed. I can give some guidance on how to set breakpoints in python scripts.

      Attachments

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

        Activity

          People

            ericcooper Eric Cooper (Inactive)
            ericcooper Eric Cooper (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty