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')