[SERVER-17219] findAndModify rollback triggers !_mustRollback invariant failure with profiling enabled Created: 06/Feb/15  Updated: 19/Sep/15  Resolved: 10/Feb/15

Status: Closed
Project: Core Server
Component/s: Diagnostics, Querying
Affects Version/s: 3.0.0-rc8
Fix Version/s: 3.0.0-rc9, 3.1.0

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:

 Description   

This invariant failures affects mmapv1, but not WiredTiger. It requires profiling to be enabled on the database.

Invariant failure !_mustRollback src/mongo/db/storage/mmap_v1/dur_recovery_unit.cpp 55
 
#0  0x00007ffff7bcc20b in raise (sig=5) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
#1  0x00000000018d5cac in mongo::breakpoint () at src/mongo/util/debugger.cpp:63
#2  0x00000000018cab1d in mongo::invariantFailed (expr=0x2026b1b "!_mustRollback", file=0x2026ad8 "src/mongo/db/storage/mmap_v1/dur_recovery_unit.cpp", line=55) at src/mongo/util/assert_util.cpp:147
#3  0x00000000017004c7 in mongo::DurRecoveryUnit::commitUnitOfWork (this=0x32d0460) at src/mongo/db/storage/mmap_v1/dur_recovery_unit.cpp:55
#4  0x0000000001141902 in mongo::WriteUnitOfWork::commit (this=0x7ffff7fcc370) at src/mongo/db/operation_context.h:166
#5  0x0000000001452840 in mongo::profile (txn=0x7ffff7fcc7d0, op=2004) at src/mongo/db/introspect.cpp:133
#6  0x000000000144b27f in mongo::assembleResponse (txn=0x7ffff7fcc7d0, m=..., dbresponse=..., remote=..., fromDBDirectClient=false) at src/mongo/db/instance.cpp:511
#7  0x0000000001142284 in mongo::MyMessageHandler::process (this=0x30ce1c8, m=..., port=0x30f4580, le=0x34122d0) at src/mongo/db/db.cpp:206
#8  0x00000000018f3db2 in mongo::PortMessageServer::handleIncomingMsg (arg=0x30f4580) at src/mongo/util/net/message_server_port.cpp:229
#9  0x00007ffff7bc4182 in start_thread (arg=0x7ffff7fcd700) at pthread_create.c:312
#10 0x00007ffff6cc500d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111



 Comments   
Comment by Githook User [ 10/Feb/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-17219 At rollback of the last level, clear the _mustRollback flag

(cherry picked from commit b984d80226af9f1866fc2a16eb566d96ff61f6e2)
Branch: v3.0
https://github.com/mongodb/mongo/commit/57d8b8d5e0642ae73c20d2a23ad8af80ddf9e49e

Comment by Githook User [ 10/Feb/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-17219 At rollback of the last level, clear the _mustRollback flag
Branch: master
https://github.com/mongodb/mongo/commit/b984d80226af9f1866fc2a16eb566d96ff61f6e2

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