CodisLabs/redis-port

使用redis-restore将rdb文件导入集群失败,导入单机就正常

duhongx opened this issue · 0 comments

[root@psdong redis-port-v2.0-beta-go1.10.1-linux]# pwd
/data/aliyun/redis-port-v2.0-beta-go1.10.1-linux
[root@psdong redis-port-v2.0-beta-go1.10.1-linux]# ./redis-restore -i ../hins5471219_data_20190412041234.rdb -t 192.168.1.50:7001
2019/04/12 18:40:37 restore.go:70: [INFO] restore: input = "../hins5471219_data_20190412041234.rdb", aoflog = "" target = "192.168.1.50:7001"
2019/04/12 18:40:37 restore.go:126: [INFO] restore: (r,f,s/a,f,s) = (rdb,rdb.forward,rdb.skip/aof,rdb.forward,rdb.skip)
2019/04/12 18:40:37 libs.go:462: [PANIC] fetch redigo reply failed
[error]: MOVED 10382 192.168.1.50:7002
[stack]:
2 /home/travis/gopath/src/github.com/CodisLabs/redis-port/cmd/libs.go:462
main.redigoGetResponse
1 /home/travis/gopath/src/github.com/CodisLabs/redis-port/cmd/libs.go:588
main.doRestoreDBEntry.func3
0 /home/travis/gopath/src/github.com/CodisLabs/redis-port/cmd/libs.go:314
main.(*Job).Run.func1
... ...
[root@psdong redis-port-v2.0-beta-go1.10.1-linux]# ./redis-restore -i ../hins5471219_data_20190412041234.rdb -t 192.168.1.50:6379
2019/04/12 18:40:43 restore.go:70: [INFO] restore: input = "../hins5471219_data_20190412041234.rdb", aoflog = "" target = "192.168.1.50:6379"
2019/04/12 18:40:43 restore.go:126: [INFO] restore: (r,f,s/a,f,s) = (rdb,rdb.forward,rdb.skip/aof,rdb.forward,rdb.skip)
2019/04/12 18:40:44 restore.go:155: [INFO] restore: size = 247375584 - [ 4.56%, 0.00%] (r,f,s/a,f,s)=(11272192,8633,0/0,0,0) ~ (10.75mb,-,-/0,-,-)
2019/04/12 18:40:45 restore.go:155: [INFO] restore: size = 247375584 - [ 8.48%, 0.00%] (r,f,s/a,f,s)=(20971520,16452,0/0,0,0) ~ (20.00mb,-,-/0,-,-)
2019/04/12 18:40:46 restore.go:155: [INFO] restore: size = 247375584 - [ 12.40%, 0.00%] (r,f,s/a,f,s)=(30670848,23899,0/0,0,0) ~ (29.25mb,-,-/0,-,-)
2019/04/12 18:40:47 restore.go:155: [INFO] restore: size = 247375584 - [ 16.32%, 0.00%] (r,f,s/a,f,s)=(40370176,31252,0/0,0,0) ~ (38.50mb,-,-/0,-,-)
2019/04/12 18:40:48 restore.go:155: [INFO] restore: size = 247375584 - [ 19.98%, 0.00%] (r,f,s/a,f,s)=(49414144,38312,0/0,0,0) ~ (47.12mb,-,-/0,-,-)
2019/04/12 18:40:49 restore.go:155: [INFO] restore: size = 247375584 - [ 23.74%, 0.00%] (r,f,s/a,f,s)=(58720256,45750,0/0,0,0) ~ (56.00mb,-,-/0,-,-)
2019/04/12 18:40:50 restore.go:155: [INFO] restore: size = 247375584 - [ 31.10%, 0.00%] (r,f,s/a,f,s)=(76939264,47499,0/0,0,0) ~ (73.38mb,-,-/0,-,-)
2019/04/12 18:40:51 restore.go:155: [INFO] restore: size = 247375584 - [ 32.64%, 0.00%] (r,f,s/a,f,s)=(80740352,50625,0/0,0,0) ~ (77.00mb,-,-/0,-,-)
2019/04/12 18:40:52 restore.go:155: [INFO] restore: size = 247375584 - [ 36.45%, 0.00%] (r,f,s/a,f,s)=(90177536,58274,0/0,0,0) ~ (86.00mb,-,-/0,-,-)
2019/04/12 18:40:53 restore.go:155: [INFO] restore: size = 247375584 - [ 40.27%, 0.00%] (r,f,s/a,f,s)=(99614720,65922,0/0,0,0) ~ (95.00mb,-,-/0,-,-)
2019/04/12 18:40:54 restore.go:155: [INFO] restore: size = 247375584 - [ 44.08%, 0.00%] (r,f,s/a,f,s)=(109051904,73435,0/0,0,0) ~ (104.00mb,-,-/0,-,-)
2019/04/12 18:40:55 restore.go:155: [INFO] restore: size = 247375584 - [ 47.90%, 0.00%] (r,f,s/a,f,s)=(118489088,81172,0/0,0,0) ~ (113.00mb,-,-/0,-,-)
2019/04/12 18:40:56 restore.go:155: [INFO] restore: size = 247375584 - [ 51.98%, 0.00%] (r,f,s/a,f,s)=(128581632,88857,0/0,0,0) ~ (122.62mb,-,-/0,-,-)
2019/04/12 18:40:57 restore.go:155: [INFO] restore: size = 247375584 - [ 55.63%, 0.00%] (r,f,s/a,f,s)=(137625600,95971,0/0,0,0) ~ (131.25mb,-,-/0,-,-)
2019/04/12 18:40:58 restore.go:155: [INFO] restore: size = 247375584 - [ 59.40%, 0.00%] (r,f,s/a,f,s)=(146931712,103464,0/0,0,0) ~ (140.12mb,-,-/0,-,-)
2019/04/12 18:40:59 restore.go:155: [INFO] restore: size = 247375584 - [ 63.21%, 0.00%] (r,f,s/a,f,s)=(156368896,111163,0/0,0,0) ~ (149.12mb,-,-/0,-,-)
2019/04/12 18:41:00 restore.go:155: [INFO] restore: size = 247375584 - [ 67.08%, 0.00%] (r,f,s/a,f,s)=(165937152,118713,0/0,0,0) ~ (158.25mb,-,-/0,-,-)
2019/04/12 18:41:01 restore.go:155: [INFO] restore: size = 247375584 - [ 70.89%, 0.00%] (r,f,s/a,f,s)=(175374336,126122,0/0,0,0) ~ (167.25mb,-,-/0,-,-)
2019/04/12 18:41:02 restore.go:155: [INFO] restore: size = 247375584 - [ 75.08%, 0.00%] (r,f,s/a,f,s)=(185729024,133728,0/0,0,0) ~ (177.12mb,-,-/0,-,-)
2019/04/12 18:41:03 restore.go:155: [INFO] restore: size = 247375584 - [ 78.95%, 0.00%] (r,f,s/a,f,s)=(195297280,141368,0/0,0,0) ~ (186.25mb,-,-/0,-,-)
2019/04/12 18:41:04 restore.go:155: [INFO] restore: size = 247375584 - [ 82.82%, 0.00%] (r,f,s/a,f,s)=(204865536,149102,0/0,0,0) ~ (195.38mb,-,-/0,-,-)
2019/04/12 18:41:05 restore.go:155: [INFO] restore: size = 247375584 - [ 86.68%, 0.00%] (r,f,s/a,f,s)=(214433792,156820,0/0,0,0) ~ (204.50mb,-,-/0,-,-)
2019/04/12 18:41:06 restore.go:155: [INFO] restore: size = 247375584 - [ 90.66%, 0.00%] (r,f,s/a,f,s)=(224264192,164565,0/0,0,0) ~ (213.88mb,-,-/0,-,-)
2019/04/12 18:41:07 restore.go:155: [INFO] restore: size = 247375584 - [ 95.11%, 0.00%] (r,f,s/a,f,s)=(235274240,171945,0/0,0,0) ~ (224.38mb,-,-/0,-,-)
2019/04/12 18:41:08 restore.go:155: [INFO] restore: size = 247375584 - [ 98.82%, 0.00%] (r,f,s/a,f,s)=(244449280,179412,0/0,0,0) ~ (233.12mb,-,-/0,-,-)
2019/04/12 18:41:09 restore.go:155: [INFO] restore: size = 247375584 - [100.00%, 0.00%] (r,f,s/a,f,s)=(247375584,181672,0/0,0,0) ~ (235.92mb,-,-/0,-,-)
2019/04/12 18:41:10 restore.go:155: [INFO] restore: size = 247375584 - [100.00%, 0.00%] (r,f,s/a,f,s)=(247375584,181672,0/0,0,0) ~ (235.92mb,-,-/0,-,-)
2019/04/12 18:41:11 restore.go:155: [INFO] restore: size = 247375584 - [100.00%, 0.00%] (r,f,s/a,f,s)=(247375584,181672,0/0,0,0) ~ (235.92mb,-,-/0,-,-)
2019/04/12 18:41:11 restore.go:155: [INFO] restore: size = 247375584 - [100.00%, 0.00%] (r,f,s/a,f,s)=(247375584,181672,0/0,0,0) ~ (235.92mb,-,-/0,-,-)
2019/04/12 18:41:11 restore.go:159: [INFO] restore: done
[root@psdong redis-port-v2.0-beta-go1.10.1-linux]# redis-cli -c -p 7001 -h 192.168.1.50 cluster nodes
163a69a508c34ffd5112a9b1abb438031341823f 192.168.1.50:7002@17002 master - 0 1555065686197 2 connected 5461-10922
7a3ec8e66e197b3a080db6cfa0b43ce991ba02b1 192.168.1.50:7004@17004 slave 163a69a508c34ffd5112a9b1abb438031341823f 0 1555065687000 4 connected
dabb12e5e9dfb0fbc91caa085e6c10c6c210262b 192.168.1.50:7003@17003 master - 0 1555065688200 3 connected 10923-16383
1126b21d65db17973186676a520ccfe08cb741b9 192.168.1.50:7006@17006 slave 5a03391185e75036339cc98c25b4299f8b3c86b8 0 1555065685195 6 connected
7fdd157ea4efa9fa940703cfa7a199824e252e9e 192.168.1.50:7005@17005 slave dabb12e5e9dfb0fbc91caa085e6c10c6c210262b 0 1555065687000 5 connected
5a03391185e75036339cc98c25b4299f8b3c86b8 192.168.1.50:7001@17001 myself,master - 0 1555065683000 1 connected 0-5460
[root@psdong redis-port-v2.0-beta-go1.10.1-linux]# redis-cli -c -p 6379 -h 192.168.1.50 cluster nodes
ERR This instance has cluster support disabled

使用redis-port-v2.0-beta-go1.10.1-linux这个版本下的redis-restore,将rdb文件导入一个redis cluster的时候提示:[PANIC] fetch redigo reply failed。
但是导入一个单机redis的时候就能正常导入。
redis-cluster和redis单节点版本都是4.0.11。是redis-restore不支持redis cluster么?