--targetdbfilterlist=1 参数无效
saiisgod opened this issue · 1 comments
场景:
源db数据在db 0,目标db数据在db1
执行命令和输出结果如下:
./redis-full-check -t 10.129.104.13:30205 -s 10.129.104.13:30971 --result total_result --targetdbfilterlist=1 --comparemode=3 --sourcedbfilterlist=0
[INFO 2020-03-25-12:40:18 main.go:65]: init log success
[INFO 2020-03-25-12:40:18 main.go:168]: configuration: {10.129.104.13:30971 auth 0 0 10.129.104.13:30205 auth 0 1 result.db total_result 3 3 unknown unknown unknown 15000 5 256 5 false 16384 20445 false}
[INFO 2020-03-25-12:40:18 main.go:170]: ---------
[INFO 2020-03-25-12:40:18 full_check.go:238]: sourceDbType=0, p.sourcePhysicalDBList=[meaningless]
[INFO 2020-03-25-12:40:18 full_check.go:243]: db=0:keys=1
[INFO 2020-03-25-12:40:18 full_check.go:253]: ---------------- start 1th time compare
[INFO 2020-03-25-12:40:18 full_check.go:278]: start compare db 0
[INFO 2020-03-25-12:40:18 scan.go:20]: build connection[source redis addr: [10.129.104.13:30971]]
[INFO 2020-03-25-12:40:19 full_check.go:203]: stat:
times:1, db:0, dbkeys:1, finish:33%, finished:true
KeyScan:{1 1 0}
KeyConflictInProcess|string|lack_target|{1 1 0}
[INFO 2020-03-25-12:40:19 full_check.go:250]: wait 5 seconds before start
[INFO 2020-03-25-12:40:24 full_check.go:253]: ---------------- start 2th time compare
[INFO 2020-03-25-12:40:24 full_check.go:278]: start compare db 0
[INFO 2020-03-25-12:40:25 full_check.go:203]: stat:
times:2, db:0, finished:true
KeyScan:{1 1 0}
KeyConflictInProcess|string|lack_target|{1 1 0}
[INFO 2020-03-25-12:40:25 full_check.go:250]: wait 5 seconds before start
[INFO 2020-03-25-12:40:30 full_check.go:253]: ---------------- start 3th time compare
[INFO 2020-03-25-12:40:30 full_check.go:278]: start compare db 0
[INFO 2020-03-25-12:40:31 full_check.go:203]: stat:
times:3, db:0, finished:true
KeyScan:{1 1 0}
KeyConflictAtLast|string|lack_target|{1 1 0}
[INFO 2020-03-25-12:40:31 full_check.go:328]: --------------- finished! ----------------
all finish successfully, totally 2 key(s) and 0 field(s) conflict
实际上目标db的db1和源集群的db0数据是相同的,但是比较结果显示有差异。
redisfullcheck的比较逻辑,是src db0和dest db0比较,src dbn与dest dbn比较?
能适用于src db0与 dest db1比较这种需求嘛?
redisfullcheck的比较逻辑,是src db0和dest db0比较,src dbn与dest dbn比较?
是的
能适用于src db0与 dest db1比较这种需求嘛?
目前不能