-
Notifications
You must be signed in to change notification settings - Fork 52
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
DOCSP-33862-mongorestore-example #146
DOCSP-33862-mongorestore-example #146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this update, @jason-price-mongodb! I've left a non-blocking for your consideration, but otherwise this LGTM.
Thanks!
Joe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmd-mongo please re-review. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jason-price-mongodb! This one LGTM.
Thanks,
Joe
Hi there, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates per ext review.
@ohassanmongodb please re-review. Thanks! |
@mvankeulen94 please review. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few comments, will flag this so engineering can weigh in as well
To back up a database at a specific point in time to an :term:`oplog` | ||
file, use :option:`mongodump --oplog`. To restore the database at a | ||
point in time with an oplog file, use :option:`mongorestore | ||
--oplogReplay`. For more details, see :ref:`backup-restore-oplogreplay`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a note that there are restrictions on when --oplog can be called.
https://jira.mongodb.org/browse/DOCSP-38779 is in progress, which adds additional corrections on when --oplog can safely be called. Ideally we can complete that ticket prior to pushing this.
The root issue with the confusion is we are labeling mongorestore as "point in time", and so users assume that they can choose the specific point in time to which they restore. They cannot do that safely with the DB Tools, so we'd prefer to not advertise this as a recommended use case. I discussed with the team, and we are in favor of instead updating all these references to "point in time" to state that, unless a user pauses writes for the duration of their mongodump, the only way to get a consistent backup is to use --oplog mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated per feedback.
@mvankeulen94 please re-review. I'll make the various changes to the server docs repo in a different PR. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for handling these changes! I have a few points of clarification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates per external review.
@mvankeulen94 please re-review. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is looking great. I just have a couple more changes - I'll also share the PR with TAR engineering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I think we're overindexing on the specific misunderstanding the user in DOCSP-33862 had. It feels like we're trying to treat the symptom (the misunderstanding in DOCSP-33862) instead of treating the cause (we don't explain what mongodump does clearly enough).
I think that understanding how mongodump will dump inconsistent data without using --oplog
is integral to understanding the tools. We should probably explain how this works more fully and it should probably be up front in the behavior section and even the main page.
Could we do more of a larger rewrite here? I think as it stands this PR is adding complexity and not tackling the root of the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates per external review
@mvankeulen94 @tfogo please re-review. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as long as @mvankeulen94 is happy.
I can file the tickets to make the larger changes to the dump/restore docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you! Per Slack conversation, if we could wait on publishing these until https://jira.mongodb.org/browse/DOCSP-37996 is complete, that would be great.
DESCRIPTION
Added point in time info per Jira.
STAGING
https://preview-mongodbjasonpricemongodb.gatsbyjs.io/database-tools/DOCSP-33862-mongorestore-example/mongorestore/mongorestore-examples/#back-up-and-restore-a-database-to-a-specific-point-in-time
https://preview-mongodbjasonpricemongodb.gatsbyjs.io/database-tools/DOCSP-33862-mongorestore-example/mongorestore/#options
https://preview-mongodbjasonpricemongodb.gatsbyjs.io/database-tools/DOCSP-33862-mongorestore-example/mongodump/#options
JIRA
https://jira.mongodb.org/browse/DOCSP-33862
BUILD LOG
https://workerpool-boxgs.mongodbstitch.com/pages/job.html?collName=queue&jobId=661eb3b53a5920a291b8b3a7
Self-Review Checklist
External Review Requirements
What's expected of an external reviewer?