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

Can not restore through moxi to 181 cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 2.0
    • 2.0
    • tools
    • Security Level: Public
    • None
    • centos5.6

    Description

      I git clone the membase-cli code at my own lap top.
      Take a backup from 181 node:
      $./cbbackup http://10.5.2.22:8091 ~/backup
      ################### 100.0% (1000/1000 msgs)
      bucket: default, msgs transferred...
      : total | last | per sec
      batch : 2136 | 2136 | 2772.4
      byte : 4000 | 4000 | 5191.7
      msg : 1000 | 1000 | 1297.9
      done

      Restore it to another 181 node through moxi:
      $ ./cbrestore ~/backup/ memcached://10.3.2.23:11211
      ################### 100.0% (1000/1000 msgs)
      bucket: default, msgs transferred...
      : total | last | per sec
      batch : 2 | 2 | 1.1
      byte : 4000 | 4000 | 2188.4
      msg : 1000 | 1000 | 547.1
      done

      But when I try to use memcached client to access the data, I failed:

      >>> client = mc_bin_client.MemcachedClient('10.5.2.22', 11211) #source
      >>> clieng.get("chisheng1")
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      NameError: name 'clieng' is not defined
      >>> client.get("chisheng1")
      (100001, 2, 'hong')
      >>> client1 = mc_bin_client.MemcachedClient('10.5.2.23', 11211) #destination
      >>> client1.get("chisheng1")
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "lib/mc_bin_client.py", line 198, in get
      parts = self._doCmd(memcacheConstants.CMD_GET, key, '')
      File "lib/mc_bin_client.py", line 128, in _doCmd
      return self._handleSingleResponse(opaque)
      File "lib/mc_bin_client.py", line 121, in _handleSingleResponse
      cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
      File "lib/mc_bin_client.py", line 117, in _handleKeyedResponse
      raise MemcachedError(errcode, rv)
      mc_bin_client.MemcachedError: Memcached error #1 'Not found': Not found for vbucket :992 to mc 10.5.2.23:11211

      The source vm is 10.5.2.22, the destination vm is 10.5.2.23

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            Chisheng Chisheng Hong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty