-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoShake从mongos拉取仍旧存在duplicate key error #392
Labels
Comments
这个原因是现在mongoshake全量阶段用的是secondaryPreferred,所以优先读的secondary。read concern没有进行配置,导致读secondary是available的方式,available和local方式不同的是前者不会过滤掉孤儿文档。
此处MongoShake将会给出建议和优化:
当然,用户也可以通过 |
vinllen
added a commit
that referenced
this issue
Jul 24, 2020
…nt problem reading from MongoS. #392
vinllen
added a commit
that referenced
this issue
Jul 29, 2020
* fix bug that checkpoint.storage.db does not work since v2.4.6 * fix bug of orphan document filter core. #389. * remove listDatabase request when incr_sync.shard_key != auto. #385 * add oplog_max_size and oplog_avg_size metric * polish ChangeLog * bugfix: HA switch with checkpoint duplicate update. #388 * polish ChangeLog * increase syncer thread when fetching method is change stream * add more log in reader to debug * add readConcern and writeConcern in client to solve the orphan document problem reading from MongoS. #392 * Replace incorrect usages of blsstat with mongoshake-stat in scripts/mongoshake-stat (#393) * fix wrong name usage in mongoshake-stat script, thanks @neal Gosalia. see #393 * release v2.4.8 Co-authored-by: Neal Gosalia <nealgosalia@gmail.com>
亲测发现4.0版本,孤儿文档过滤不完善,即使配置了readConcern=local/majority,readPreferred=primary还是会碰到孤儿文档,这种情况建议手动清理一下。如果还有疑问请reopen当前issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不符合预期,从mongos拉取不应该出现孤儿文档的问题。从mongod上看,的确有多个mongod存在相同的文档
The text was updated successfully, but these errors were encountered: