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

cbbackup/cbrestore from 181 to latest 2.0 build, or 181 to 181, with wrong CAS and item_flag value restored.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0-beta
    • 2.0
    • tools
    • Security Level: Public
    • None
    • centos5.6

    Description

      I insert 1000 items to a 181 cluster, do cbbackup and cbrestore them to another 181 cluster using latest membase-cli code. The items in the other 181 cluster are with wrong flag and cas value. The return value for get is (Flag, CAS, item_value)

      import sys
      sys.path.append(".")
      sys.path.append("lib")
      import mc_bin_client
      client = mc_bin_client.MemcachedClient('10.5.2.22', 11211) #source
      for i in range (1000):
      ... client.set("chisheng%d"%, 0, 100000+i, "hong")
      client1 = mc_bin_client.MemcachedClient('10.5.2.23', 11211) #destination
      client1.get("chisheng133")
      (629604608, 31, 'hong')
      client.get("chisheng133")
      (100133, 134, 'hong')

      Things doesn't work for backup from 181 and restore to 200 either:
      client = mc_bin_client.MemcachedClient('10.5.2.22', 11211)#source
      for i in range (1000):
      ... client.set("chisheng%d"%, 0, 100000+i, "hong")
      client1 = mc_bin_client.MemcachedClient('10.6.2.66', 11211)#destination
      client1.get("chisheng133")
      (629604608, 355638486346888, 'hong')
      client.get("chisheng133")
      (100133, 134, 'hong')

      But things are working when I do backup/restore from 200 to 200. (CAS, Flag, Value)
      client = mc_bin_client.MemcachedClient('10.5.2.22', 11211)#source
      for i in range (1000):
      ... client.set("chisheng%d"%, 0, 100000+i, "hong")
      client1 = mc_bin_client.MemcachedClient('10.5.2.23', 11211)#destination
      client.get("chisheng133")
      (100133, 13004603940813618, 'hong')
      client1.get("chisheng133")
      (100133, 13004603940813618, 'hong')

      Attachments

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

        Activity

          People

            steve Steve Yen
            Chisheng Chisheng Hong (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