[SERVER-43308] Invariant failure in mqlrun: doc.value().isOwned() Created: 12/Sep/19  Updated: 29/Oct/23  Resolved: 25/Sep/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.4

Type: Bug Priority: Major - P3
Reporter: Justin Seyster Assignee: Justin Seyster
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Steps To Reproduce:

Run mqlrun with a query that includes a sort.

Sprint: Query 2019-10-07
Participants:

 Description   

Queries with a sort cause this invariant failure in mqlrun:

>    mqlrun.exe!mongo::invariantFailed(const char * expr, const char * file, unsigned int line) Line 104    C++
     [Inline Frame] mqlrun.exe!mongo::invariantWithLocation(const bool &) Line 69    C++
     mqlrun.exe!mongo::WorkingSetMember::transitionToOwnedObj() Line 122    C++
     mqlrun.exe!mongo::PipelineProxyStage::doWork(unsigned __int64 * out) Line 91    C++
     mqlrun.exe!mongo::PlanStage::work(unsigned __int64 * out) Line 47    C++
     mqlrun.exe!mongo::PlanExecutorImpl::_getNextImpl(mongo::Snapshotted<mongo::BSONObj> * objOut, mongo::RecordId * dlOut) Line 531    C++
     mqlrun.exe!mongo::PlanExecutorImpl::getNext(mongo::BSONObj * objOut, mongo::RecordId * dlOut) Line 382    C++
     mqlrun.exe!mongo::mqlrunMain(const char * pipelineStr, const char * fileName, mongo::OutputType outputType, const char * tempDir) Line 264    C++
     mqlrun.exe!main(int argc, char * * argv, char * * envp) Line 377    C++



 Comments   
Comment by Githook User [ 30/Jan/20 ]

Author:

{'username': 'jseyster', 'name': 'Justin Seyster', 'email': 'justin.seyster@mongodb.com'}

Message: SERVER-43308 Documents created for mqlrun should use owned BSON.

(cherry picked from commit 51b0ae39171a3ff00c32439650cccaf02f0f4b35)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/2dd3ef6096eb28c13bb40add57dcc4a343433c4b

Comment by Githook User [ 25/Sep/19 ]

Author:

{'username': 'jseyster', 'email': 'justin.seyster@mongodb.com', 'name': 'Justin Seyster'}

Message: SERVER-43308 Documents created for mqlrun should use owned BSON.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/51b0ae39171a3ff00c32439650cccaf02f0f4b35

Generated at Thu Feb 08 05:02:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.