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

Concurrent collection.drop() and system.indexes.count() can trigger an fassert

    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Integration 2016-10-10, Integration 2016-10-31, Storage 2016-11-21, Storage 2016-12-12
    • 0

      Doing a collection drop and a count on system.indexes can trigger an fassert. I was able to repro this on an mmapv1 2 node replica set but not an 1 node replica set.

      Affects 3.2 and master

      backtrace:

      d20000| 2016-07-08T16:55:23.546-0400 I -        [conn10] Fatal Assertion 17441
      d20000| 2016-07-08T16:55:23.546-0400 I -        [conn10]
      d20000|
      d20000| ***aborting after fassert() failure
      
      
      d20000|  mongod(_ZN5mongo13fassertFailedEi+0x313) [0x556796cde483]
      d20000|  mongod(+0xEE9B54) [0x556796b03b54]
      d20000|  mongod(_ZN5mongo27SimpleRecordStoreV1Iterator4nextEv+0xAC) [0x556796b13d3c]
      d20000|  mongod(_ZN5mongo14CollectionScan6doWorkEPm+0x3E1) [0x5567966020b1]
      d20000|  mongod(_ZN5mongo9PlanStage4workEPm+0x4D) [0x556796621dfd]
      d20000|  mongod(_ZN5mongo10CountStage6doWorkEPm+0x132) [0x556796603632]
      d20000|  mongod(_ZN5mongo9PlanStage4workEPm+0x4D) [0x556796621dfd]
      d20000|  mongod(_ZN5mongo12PlanExecutor11getNextImplEPNS_11SnapshottedINS_7BSONObjEEEPNS_8RecordIdE+0x382) [0x556796863b92]
      d20000|  mongod(_ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_8RecordIdE+0x39) [0x556796863779]
      d20000|  mongod(_ZN5mongo12PlanExecutor11executePlanEv+0x61) [0x556796864a21]
      d20000|  mongod(+0x92BA9D) [0x556796545a9d]
      d20000|  mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x12BC) [0x5567965de27c]
      d20000|  mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x9C8) [0x5567965dc638]
      d20000|  mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x2DC) [0x5567969d991c]
      d20000|  mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xA5D) [0x5567966be72d]
      d20000|  mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xD0) [0x5567963d88e0]
      d20000|  mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x480) [0x556796d068e0]
      d20000|  libpthread.so.0(+0x76FA) [0x7f451bd586fa]
      d20000|  libc.so.6(clone+0x6D) [0x7f451ba8eb5d]
      
      

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: