Created attachment 462222 [details]
Patch to support automatic repair of MongoDB databases after crash
The attached patch modifies the init script file to support automatic repairing the database if it was not closed properly (e.g. if the machine crashed). The automatic repair is not enabled by default, because it may cause data loss. The repair is required until single-server durability (http://jira.mongodb.org/browse/SERVER-980) has been implemented.
It also introduces /etc/sysconfig/mongod to tune this and other settings:
- general command line options, useful for example to enable the REST interface
- path of the config file, useful for example if it resides on network storage
I would like to request that this patch is applied to rawhide, and preferably also F-13/F-14.
Oh, patch is created with git format-patch, so it can easily be applied in the fedpkg repo with "git am patch".
Single server durability is now fixed in 1.8.0 which is in rawhide. Therefore, I don't think this patch is required anymore. Is that correct? If not, please reopen the case.
Yes, that should indeed fix the problem. You should keep this open until an update to 1.8 has been pushed. Do you intend to push it for F-14?
To truely close the bug you need to enable journaling by default. I suggest adding "journal = true" as the default to /etc/mongodb.conf.
Please enable journaling by default as it is what most users will expect on local (server) installs. Only when multi-node setups are created it makes sense to disable journaling, and in that case admins will check the config file anyway.
Enabling can be achieved by adding "journal = true" to /etc/mongodb.conf
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
mongodb-2.0.2-8.fc15 has been submitted as an update for Fedora 15.
mongodb-2.0.2-8.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mongodb-2.0.2-8.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
mongodb-2.0.2-8.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
mongodb-2.0.2-8.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.