[SERVER-5056] Server cannot automatically recover if it terminates during recovery Created: 23/Feb/12  Updated: 11/Jul/16  Resolved: 01/Jun/12

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.0.2
Fix Version/s: 2.1.2

Type: Bug Priority: Major - P3
Reporter: Sridhar Nanjundeswaran Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-5400 Repair fails when using --repairpath Closed
Operating System: ALL
Participants:

 Description   

If server terminates during the journal prealloc step then auto recovery is not possible. One is forced to manually run repair to recover from the scenario.

old lock file: B:\rpl2\mongod.lock. probably means unclean shutdown,
but there are no journal files to recover.
this is likely human error or filesystem corruption.
found 3 dbs.
see: http://dochub.mongodb.org/core/repair for more information
*************
Sun Feb 19 07:51:31 [initandlisten] exception in initAndListen: 12596 old lock file, terminating
Sun Feb 19 07:51:31 dbexit:
Sun Feb 19 07:51:31 [initandlisten] shutdown: going to close listening sockets...
Sun Feb 19 07:51:31 [initandlisten] shutdown: going to flush diaglog...
Sun Feb 19 07:51:31 [initandlisten] shutdown: going to close sockets...
Sun Feb 19 07:51:31 [initandlisten] shutdown: waiting for fs preallocator...
Sun Feb 19 07:51:31 [initandlisten] shutdown: lock for final commit...
Sun Feb 19 07:51:31 [initandlisten] shutdown: final commit...
Sun Feb 19 07:51:31 [initandlisten] shutdown: closing all files...
Sun Feb 19 07:51:31 [initandlisten] closeAllFiles() finished
Sun Feb 19 07:51:31 dbexit: really exiting now



 Comments   
Comment by auto [ 01/Jun/12 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Don't fail to start-up if there are only prealloc files but no journal files SERVER-5056
Branch: master
https://github.com/mongodb/mongo/commit/97007458ad56f5ab2270499036412a248c4f3503

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