alibaba / MongoShake

MongoShake is a universal data replication platform based on MongoDB's oplog. Redundant replication and active-active replication are two most important functions. 基于mongodb oplog的集群复制工具,可以满足迁移和同步的需求,进一步实现灾备和多活功能。
GNU General Public License v3.0
1.72k stars 441 forks source link

panic: move chunk oplog found, 错误优化 #850

Open UFOXD opened 1 year ago

UFOXD commented 1 year ago

panic: move chunk oplog found[{"ts":7296058149138595843,"h":-1833031690238059783,"v":2,"op":"d","ns":"walter.chen","o":[{"Name":"name","Value":"000857c6-badf-46ce-a57a-8f048d737ce5"},{"Name":"_id","Value":"6540ab0f5152dab58f80d3e9"}],"o2":null,"fromMigrate":true}]

从理论上来说, MongoShake 直接过滤掉 "fromMigrate":true 这种oplog, 应该是不会影响数据完成性的。 作为目标库来说根本就不用关心源库的数据调度, 所以遇到这种log 不需要panic。

Mongoshake 坚持做panic ,是有可能会遇到其他问题吗?