Skip to content
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

Missing oplog entries? #258

Open
gulikoza opened this issue Apr 14, 2018 · 1 comment
Open

Missing oplog entries? #258

gulikoza opened this issue Apr 14, 2018 · 1 comment
Labels

Comments

@gulikoza
Copy link

gulikoza commented Apr 14, 2018

Hi,

We are evaluating mongodb_consistent_backup. I'm trying to understand how the program stores oplog changes. We are using sharded replica set. I'm checking the logs for config replica backup and I'm seeing something like:

Done tailing oplog on configRepl/10.xx.xx.xx:27019, 16010 oplog changes, end ts: Timestamp(1523625054, 1)

But the last document in configRepl.tar/dump/oplog.bson has timestamp 1523625034, so it would appear oplog dump ends 20 secs earlier. I did a:

# bsondump --pretty oplog.bson |grep "timestamp"| wc -l
2018-04-14T21:33:32.343+0500    15988 objects found
15988

and it would appear it's missing around 22 entries.

I am reading the statistics correctly?

@gulikoza
Copy link
Author

OK, so the Resolver trims the oplogs to max_ts. I see that.
But this timestamp is not recorded in meta.json? How would you know which is the last ts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants