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

Index creation caused Fatal Assertion 16967

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0
    • Component/s: Index Maintenance, Storage
    • Labels:
      None
    • ALL

      On OSX, with mongo version:
      db version v2.6.0
      2014-07-24T16:08:10.119-0500 git version: nogitversion

      Single server, no replica sets. Mongo crashed when I tried to ensureIndex on a collection. I had previously (as in a few minutes before) successfully added other indexes.

      Mongo starts back up but db.repairDatabase() crashes it again. It is a relatively small/medium sized collection - about 11 million rows at a taking up about 10GB of disk space.

      Snippet below (see full stack traces attached)

      014-07-24T15:48:43.790-0500 [conn1] 		Index Build: 8066000/11203300	71%
      2014-07-24T15:48:46.000-0500 [conn1] 		Index Build: 9142100/11203300	81%
      2014-07-24T15:48:48.844-0500 [conn1] Confirmation.actionLog Fatal Assertion 16967
      2014-07-24T15:48:48.848-0500 [conn1] Confirmation.actionLog 0x10e60b3ea 0x10e5c11c4 0x10e5af9cb 0x10e40bdb3 0x10e40bddc 0x10e438b15 0x10e1113ef 0x10e31363b 0x10dffb97a 0x10dffc8e5 0x10dff2f0a 0x10e028d14 0x10e0c0869 0x10e0c164e 0x10e0c2921 0x10e2fd2ac 0x10e1af18f 0x10defb41e 0x10e5cebe6 0x10e63f111
       0   mongod                              0x000000010e60b3ea _ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE + 58
       1   mongod                              0x000000010e5c11c4 _ZN5mongo10logContextEPKc + 196
       2   mongod                              0x000000010e5af9cb _ZN5mongo13fassertFailedEi + 187
       3   mongod                              0x000000010e40bdb3 _ZNK5mongo13ExtentManager21getNextRecordInExtentERKNS_7DiskLocE + 179
       4   mongod                              0x000000010e40bddc _ZNK5mongo13ExtentManager13getNextRecordERKNS_7DiskLocE + 28
       5   mongod                              0x000000010e438b15 _ZN5mongo12FlatIterator7getNextEv + 85
       6   mongod                              0x000000010e1113ef _ZN5mongo14CollectionScan4workEPm + 303
       7   mongod                              0x000000010e31363b _ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_7DiskLocE + 267
       8   mongod                              0x000000010dffb97a _ZN5mongo18addExistingToIndexEPNS_10CollectionEPKNS_15IndexDescriptorEPNS_17IndexAccessMethodEb + 890
       9   mongod                              0x000000010dffc8e5 _ZN5mongo12buildAnIndexEPNS_10CollectionEPNS_17IndexCatalogEntryEb + 1365
       10  mongod                              0x000000010dff2f0a _ZN5mongo12IndexCatalog11createIndexENS_7BSONObjEbNS0_16ShutdownBehaviorE + 1290
       11  mongod                              0x000000010e028d14 _ZN5mongo14CmdCreateIndex3runERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS_7BSONObjEiRS7_RNS_14BSONObjBuilderEb + 5892
       12  mongod                              0x000000010e0c0869 _ZN5mongo12_execCommandEPNS_7CommandERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS_7BSONObjEiRS8_RNS_14BSONObjBuilderEb + 41
       13  mongod                              0x000000010e0c164e _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 2286
       14  mongod                              0x000000010e0c2921 _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1313
       15  mongod                              0x000000010e2fd2ac _ZN5mongo11newRunQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_ + 876
       16  mongod                              0x000000010e1af18f _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 2351
       17  mongod                              0x000000010defb41e _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 190
       18  mongod                              0x000000010e5cebe6 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1078
       19  mongod                              0x000000010e63f111 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 177
      2014-07-24T15:48:48.848-0500 [conn1]
      

        1. mongoindexbuild.txt
          7 kB
        2. mongorepairdb.txt
          7 kB

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            ryan.carmichael@elabsolutions.com Ryan Carmichael
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: