Skip to content

WIP: Improve documentation about converting from MMAPv1 to WiredTiger #6204

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

Merged
merged 5 commits into from
Apr 13, 2022

Conversation

cinderblock
Copy link

A story about upgrading:

I just learned that I needed to upgrade MongoDB for a different program to be able to update. No big deal, I'll just go read the steps to upgrade Mongo from v4.0.something.

Ok, gotta add a new apt-source for v... and it wasn't self updating to 4.2... weird. Whatever.

Hmmm, what is this mmapv1 thing? Oh, it's just the default storage type. I just used defaults. Find by me if it gets upgraded to the latest.

apt upgrade installs new version...

mongod service is still running... weird. Usually apt takes care of that. sudo systemctl restart mongod... Wait, it's not coming back up...

No error in syslog... oh right, mongo does it's own logs. Hmmm, mmapv1 support was removed so now it can't start. Weird. Ok, find the migration instructions, basically: mongodump --out=mongo.dump && ... Wait, mongo needs to be running for the dump to work. Now I need to downgrade and I don't remember exactly which version was running before...

Now I'm frustrated. Clearly I've done this to myself but it sure feels like the docs could have had a simple yet clear warning on the migration page that you can't miss: "Export/Dump before stopping the dameon/upgrading!"

So, here I am making a request to change the docs to save others from the trouble I went through in the hopes that someone will see this and agree.

Ps, Unfortunately, this repo doesn't allow "Issues", so I've had to create a bogus "Pull Request" as I don't see any other way to give feedback.

Alternatively, I don't see how mongod can't just automatically do the right thing here. Refusing to write/update a mmapv1 database is reasonable to get users to upgrade but now it can't even read it?!?

jason-price-mongodb and others added 5 commits April 6, 2022 10:21
* DOCSP-15476-reapply-53-release-note-geoNear

* DOCSP-15476-reapply-53-release-note-geoNear

Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com>
* Add note about extra DBRef fields

* Incorporating external review comments
@mongo-cr-bot mongo-cr-bot merged commit 353466e into mongodb:v6.0 Apr 13, 2022
mongo-cr-bot pushed a commit that referenced this pull request Feb 2, 2024
* add note about document keys using simple collation

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

Successfully merging this pull request may close these issues.

6 participants