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

mongo 到kafka ,开启全字段同步后,会导致mongos 挂掉,如果是关掉就没有问题 #870

Open RemoteNeverMore opened 7 months ago

RemoteNeverMore commented 7 months ago

开启全字段同步后,会导致mongos 挂掉,如果是false就没有问题 mongoshake : mongo-shake-v2.8.4 mongodb:4.4.1/4.4.2

StaleDbVersion error on unexpected database. Expected admin, received mongoshake incr_sync.change_stream.watch_full_document = true

这个是在mongos.log {"t":{"$date":"2024-03-25T16:04:35.076+08:00"},"s":"F", "c":"-", "id":23081, "ctx":"conn4651","msg":"Invariant failure","attr":{"expr":"ex->getDb() == nss.db()","msg":"StaleDbVersion error on unexpected database. Expected admin, received mongosha ke","file":"src/mongo/db/pipeline/sharded_agg_helpers.h","line":232}}