-
Notifications
You must be signed in to change notification settings - Fork 163
Description
问题描述:
同一批个数据存在于redis-cluster 和redis 主从db5 数据源中,在进行源数据和目标数据进行比对时,源数据中的所有数据都被标记有问题数据,且sqlite3 输出结果 中conflict_type = lack_target (key在源数据库中,不在目的数据库中)
问题背景:
源redis 配置:
- redis-cluster 集群模式6主6从
目标redis 配置: - 单机redis ,数据源在db5
redis-full-check 版本
1.4.8
比对模式: FullValue
比对需求: 比对源redis-cluster 模式 指定key 和 目标redis db5 的指定key 是否存在差异性,比对命令如下
./redis-full-check -s "192.168.0.125:6379;192.168.0.104:6379;192.168.0.100:6379;192.168.0.59:6379;192.168.0.137:6379;192.168.0.61:6379" -p "xxx" --sourcedbtype=1 --sourcedbfilterlist=0 -t "192.168.0.113:6379" -a "xxx" --targetdbtype=0 --targetdbfilterlist="5" --interval=10 --qps=300 --batchcount=1000 --log=redisFullCheck.log --result=checkResult.log --filterlist="redisson_delay_queue*"
输出结果分析:
数据结果提示:field存在与源端key,field不存在于目的端key

redis-full-check 执行日志如下:
通过日志看,感觉没有加载到redis-cluster 中的数据

通过输出结果可以看出,数据是在两个数据源的,但是比对结果确标注都不在源端,多次测试发现源端的所有数据都被标注成不一致。

