[SERVER-16097] DeleteStageParams should include the namespace string Created: 11/Nov/14  Updated: 22/Feb/16  Resolved: 04/Feb/16

Status: Closed
Project: Core Server
Component/s: Querying, Write Ops
Affects Version/s: None
Fix Version/s: 3.3.2

Type: Bug Priority: Minor - P4
Reporter: Greg Studer Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 10 (02/22/16)
Participants:

 Description   

Recovery from yield of the Delete stage triggers a check of whether or not the mongod process is still master - this accesses the underlying collection's namespace at _collection->ns(). In the case of an EOF namespace, this may trigger a segfault - though this should be very rare since it would require an auto-yield before any operation had occurred.

Update stage may be similarly affected.



 Comments   
Comment by Githook User [ 04/Feb/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-16097 invariant(_collection) in DeleteStage::doRestoreState().

A plan stage should only yield if the collection exists.
Branch: master
https://github.com/mongodb/mongo/commit/eeeeb04e683e1a6b8293a6efe87ee5dfb7e75c11

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