[SERVER-8011] use _exit() instead of dbexit() in processCommandLineOptions() (db.cpp) Created: 21/Dec/12  Updated: 11/Jul/16  Resolved: 06/Oct/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.3.1
Fix Version/s: 2.5.3

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-8510 Move command line parsing into MONGO_... Closed
Operating System: ALL
Participants:

 Description   

Using dbexit causes an assertion during shutdown producing an error like this:

Fri Dec 21 10:56:41.799 The moveParanoia and noMoveParanoia flags cannot both be set; please use only one of them.
Fri Dec 21 10:56:41.800 dbexit: 
Fri Dec 21 10:56:41.800 shutdown: going to close listening sockets...
Fri Dec 21 10:56:41.800 shutdown: going to flush diaglog...
Fri Dec 21 10:56:41.800 shutdown: going to close sockets...
Fri Dec 21 10:56:41.800 shutdown: waiting for fs preallocator...
Fri Dec 21 10:56:41.800 shutdown: lock for final commit...
Fri Dec 21 10:56:41.800   Assertion failure c src/mongo/db/client.h 241
0x10a3db52b 0x10a3b53ac 0x10a0f1d82 0x10a0f1ebd 0x10a0f214b 0x10a0f2278 0x10a182e5d 0x109fcda23 0x109fcf323 0x7fff850077e1 
 0   mongod                              0x000000010a3db52b _ZN5mongo15printStackTraceERSo + 43
 1   mongod                              0x000000010a3b53ac _ZN5mongo12verifyFailedEPKcS1_j + 284
 2   mongod                              0x000000010a0f1d82 _ZN5mongo4Lock10ScopedLock6relockEv + 0
 3   mongod                              0x000000010a0f1ebd _ZN5mongo4Lock10ScopedLockC2Ec + 39
 4   mongod                              0x000000010a0f214b _ZN5mongo4Lock10GlobalReadC2Ei + 29
 5   mongod                              0x000000010a0f2278 _ZN5mongo11readlocktryC2Ei + 50
 6   mongod                              0x000000010a182e5d _ZN5mongo6dbexitENS_8ExitCodeEPKc + 861
 7   mongod                              0x0000000109fcda23 _ZL25processCommandLineOptionsRKSt6vectorISsSaISsEE + 19315
 8   mongod                              0x0000000109fcf323 main + 227
 9   libdyld.dylib                       0x00007fff850077e1 start + 0
Fri Dec 21 10:56:41.803 shutdown failed with exception
Fri Dec 21 10:56:41.803 dbexit: really exiting now



 Comments   
Comment by Shaun Verch [ 06/Oct/13 ]

Fixed in the refactor as part of SERVER-8510.

Comment by Shaun Verch [ 30/Sep/13 ]

This will be fixed when the current patches for SERVER-8510 go in. Leaving this note to close this issue as well.

Comment by Andy Schwerin [ 08/Mar/13 ]

Ideally, this will go away during command line processing rewrite.

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