Open syd2488951516 opened 1 year ago
3.6.8虽然是比较老的mongodb版本,但是正常的写入不应该出问题的。 你的demo依赖的go-deiver是那个版本,写入的时候有报什么错误吗?
同步已经分片的数据没有问题,同步没有分片的集合会出现该问题。 demo依赖的mongo-go-driver-1.9.0,写入的时候无报错, demo写入的数据,mongos只能查到库,看不到库下的集合,但是在分片上可以查到库下的集合,写入到了primary shard ,您可以测一下。
同步已经分片的数据没有问题,同步没有分片的集合会出现该问题。 demo依赖的mongo-go-driver-1.9.0,写入的时候无报错, demo写入的数据,mongos只能查到库,看不到库下的集合,但是在分片上可以查到库下的集合,写入到了primary shard ,您可以测一下。
直连分片,在分片上可以查到写入的数据吗?
是的,直连分片可以查到写入的数据
感觉是MongoDB的问题,跟Shake的Driver没有关系。但建议交叉测试下,2.6.5版本的Shake还是用的老的mgo版本的Driver,辛苦用这个版本测试下。
你好 有进展吗
使用mongoshake同步后,mongos 查不到部分库下的集合。同步日志无报错
1.mongoshake版本:mongo-shake-v2.8.32 2.mongodb源集群版本:MongoDB server version: 3.6.8 mongodb 目标集群版本:MongoDB server version: 3.6.8 配置文件如下: collector.conf.docx
写了一个测试demo,有和上面同样的问题, 好像是mongo驱动的问题 url为目标端集群的mongos的地址