Closed heni02 closed 4 weeks ago
从截图上看,有两张表没有同步任何数据
看起来应该是同步卡住或者报错了,我本地复现下试试
照着issue中的操作顺序本地跑了一遍,发现bmsql_stock表数据条数不一致,需要增加log排查
MO:
下游mysql:
加log排查,对一张只有update操作的表,发现读取某个时间段的insert和delete条数不一致
{"level":"ERROR","time":"2024/09/26 16:48:03.802503 +0800","caller":"cdc/reader.go:250","msg":"tableReader(bmsql_district)[1727340075084572000-1, 1727340476266060000-1] addTailEndStatistics: insert record count=4856, delete record count=4879"}
经过与存储同事的沟通,是接收数据排序上两边不一致,修改中
confirm,closed commit:48898692b
Is there an existing issue for the same bug?
Branch Name
main
Commit ID
a77a7350e
Other Environment Information
Actual Behavior
测试场景:上游mo运行tpcc100仓1000并发测试15分钟,测试停止后1个小时验证下游mysql数据是否和上游数据一致 测试数据:tpcc 100仓一共10个表 测试现象:使用tpcc验证一致性的几个sql验证下游mysql数据返回结果和mo上游不一致 测试环境:上游mo minio 3cn,下游mysql单机
MO验证sql返回结果:(以下是预期结果)
mysql验证sql返回结果:(预期应该返回0行)
同步任务信息:
mo log: http://10.222.6.1/explore?panes=%7B%22IjV%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-cdc-test%5C%22%7D%20%7C%3D%20%60%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22loki%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%221727150587995%22,%22to%22:%221727157760260%22%7D%7D%7D&schemaVersion=1&orgId=1
Expected Behavior
No response
Steps to Reproduce
Additional information
No response