[SERVER-15917] Invariant failure when running explained update Created: 03/Nov/14  Updated: 11/Jul/16  Resolved: 12/Nov/14

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 2.8.0-rc1

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

Issue Links:
Related
is related to SERVER-15888 Implicit DB creations on insert and u... Closed
is related to SERVER-15816 Invariant failure in UpdateExecutor::... Closed
Operating System: ALL
Participants:

 Description   

#0  0x00007ffff7bcc20b in raise (sig=5) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
#1  0x0000000001899d94 in mongo::mongo_breakpoint () at src/mongo/util/debug_util.cpp:58
#2  0x00000000018909be in mongo::breakpoint () at src/mongo/util/debug_util.h:73
#3  0x000000000188f854 in mongo::invariantFailed (msg=0x1e68788 "_txn->lockState()->isDbLockedForMode(nsToDatabaseSubstring(_ns), MODE_X)", file=0x1e68701 "src/mongo/db/client.cpp", line=302)
    at src/mongo/util/assert_util.cpp:145
#4  0x0000000001265def in mongo::Client::Context::_finishInit (this=0x7ffff7fca070) at src/mongo/db/client.cpp:302
#5  0x00000000012654c2 in mongo::Client::Context::Context (this=0x7ffff7fca070, txn=0x37b26e0, ns=..., doVersion=true) at src/mongo/db/client.cpp:201
#6  0x00000000012f4f0f in mongo::WriteCmd::explain (this=0x2fb6d10, txn=0x37b26e0, dbname=..., cmdObj=..., verbosity=mongo::ExplainCommon::QUERY_PLANNER, out=0x7ffff7fcb040)
    at src/mongo/db/commands/write_commands/write_commands.cpp:219
#7  0x0000000001291e93 in mongo::CmdExplain::run (this=0x2706d60 <mongo::cmdExplain>, txn=0x37b26e0, dbname=..., cmdObj=..., options=0, errmsg=..., result=..., fromRepl=false)
    at src/mongo/db/commands/explain_cmd.cpp:113
#8  0x000000000130d715 in mongo::_execCommand (txn=0x37b26e0, c=0x2706d60 <mongo::cmdExplain>, dbname=..., cmdObj=..., queryOptions=0, errmsg=..., result=..., fromRepl=false)
    at src/mongo/db/dbcommands.cpp:1160
#9  0x000000000130e6ca in mongo::Command::execCommand (txn=0x37b26e0, c=0x2706d60 <mongo::cmdExplain>, queryOptions=0, cmdns=0x36bb414 "foo.$cmd", cmdObj=..., result=..., fromRepl=false)
    at src/mongo/db/dbcommands.cpp:1374
#10 0x000000000130efd7 in mongo::_runCommands (txn=0x37b26e0, ns=0x36bb414 "foo.$cmd", _cmdobj=..., b=..., anObjBuilder=..., fromRepl=false, queryOptions=0) at src/mongo/db/dbcommands.cpp:1450
#11 0x0000000001529632 in mongo::runCommands (txn=0x37b26e0, ns=0x36bb414 "foo.$cmd", jsobj=..., curop=..., b=..., anObjBuilder=..., fromRepl=false, queryOptions=0) at src/mongo/db/query/new_find.cpp:125
#12 0x000000000152afef in mongo::newRunQuery (txn=0x37b26e0, m=..., q=..., curop=..., result=..., fromDBDirectClient=false) at src/mongo/db/query/new_find.cpp:529
#13 0x0000000001417d1f in mongo::receivedQuery (txn=0x37b26e0, c=..., dbresponse=..., m=..., fromDBDirectClient=false) at src/mongo/db/instance.cpp:219
#14 0x0000000001418e42 in mongo::assembleResponse (txn=0x37b26e0, m=..., dbresponse=..., remote=..., fromDBDirectClient=false) at src/mongo/db/instance.cpp:392
#15 0x00000000011243a0 in mongo::MyMessageHandler::process (this=0x2f5a168, m=..., port=0x2f75430, le=0x2f75cf0) at src/mongo/db/db.cpp:184
#16 0x00000000018b5e25 in mongo::PortMessageServer::handleIncomingMsg (arg=0x2f5e5c0) at src/mongo/util/net/message_server_port.cpp:234
#17 0x00007ffff7bc4182 in start_thread (arg=0x7ffff7fcc700) at pthread_create.c:312
#18 0x00007ffff6cc4fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111


Version: 0f3ef4550c44a21



 Comments   
Comment by Githook User [ 12/Nov/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-15917 fix explain of write commands against a non-existent database
Branch: master
https://github.com/mongodb/mongo/commit/fdc16e8d1d2346ca152528b71538942efb3ce4db

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