Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8011

use _exit() instead of dbexit() in processCommandLineOptions() (db.cpp)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: 2.3.1
    • Component/s: Internal Code
    • Labels:
    • ALL

      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
      

            Assignee:
            sverch Shaun Verch
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: