[SERVER-2711] Starting mongod on dbpath with journal shouldn't advise repair Created: 08/Mar/11  Updated: 12/Jul/16  Resolved: 18/Mar/11

Status: Closed
Project: Core Server
Component/s: Admin, Storage
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Richard Kreuter (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

Suppose you're running with --dur, that you then have an unclean shutdown. If you manage to start a mongod and forget --dur, the mongod exits with the old message about removing the lock file and running repair. Ideally we shouldn't tell people to run repair if they've got a journal, but should instead tell them to run with --dur, as we do if they start up without --dur and the journal exists but the lock file doesn't.



 Comments   
Comment by Mathias Stearn [ 15/Aug/11 ]

Not sure why this wasn't closed...
Please create a new issue since this one was resolved in 1.9.0

Comment by Tony Hannan [ 15/Aug/11 ]

Since --journal is default we need to update error message below when starting with --nojournal:

**************
Error: journal files are present in journal directory, yet starting without --journal enabled.
It is recommended that you start with journaling enabled so that recovery may occur.
**************

Comment by auto [ 18/Mar/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'redbeard0531@gmail.com'}

Message: remove non-recomended alternative SERVER-2711
https://github.com/mongodb/mongo/commit/9a5cc45fcc74d3adacf05d07e995f0131b2e4df8

Comment by auto [ 18/Mar/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'redbeard0531@gmail.com'}

Message: don't repeat error message SERVER-2711
https://github.com/mongodb/mongo/commit/f525eff5ddf9462ace2c22faee223df3ecdb53f0

Comment by auto [ 18/Mar/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: bad error msg SERVER-2711
https://github.com/mongodb/mongo/commit/a691ba4d41d8e82f4bd0b2c16d0f82bd3bea2b59

Generated at Thu Feb 08 03:00:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.