[SERVER-24963] Concurrent collection.drop() and system.indexes.count() can trigger an fassert Created: 08/Jul/16  Updated: 05/Apr/17  Resolved: 28/Nov/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, MMAPv1
Affects Version/s: 3.2.7
Fix Version/s: 3.2.13, 3.4.3, 3.5.1

Type: Bug Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-24667 Explore running tests under Applicati... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Sprint: Integration 2016-10-10, Integration 2016-10-31, Storage 2016-11-21, Storage 2016-12-12
Participants:
Linked BF Score: 0

 Description   

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]



 Comments   
Comment by Githook User [ 03/Feb/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-24963 Fix invalidation of cursors on system.indexes

(cherry picked from commit 647ebfac9ebf1c5fc431a2ba813bf9c97b9bdab9)
Branch: v3.4
https://github.com/mongodb/mongo/commit/459fd0955603607b2d3d8763beacfc4e317aac33

Comment by Githook User [ 02/Feb/17 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-24963 Fix invalidation of cursors on system.indexes

(cherry picked from commit 647ebfac9ebf1c5fc431a2ba813bf9c97b9bdab9)

Conflicts:
jstests/readonly/lib/read_only_test.js
Branch: v3.2
https://github.com/mongodb/mongo/commit/29b442a74b8f4ad8d3d9b0cba29fbeafac0abcfa

Comment by Githook User [ 28/Nov/16 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-24963 Fix invalidation of cursors on system.indexes
Branch: master
https://github.com/mongodb/mongo/commit/647ebfac9ebf1c5fc431a2ba813bf9c97b9bdab9

Comment by Robert Guo (Inactive) [ 12/Jul/16 ]

schwerin I haven't had luck reproing this on 3.0.10...

Comment by Andy Schwerin [ 12/Jul/16 ]

Does this affect 3.0? robert.guo

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