[SERVER-43777] Validate cmd with {background:true} should not yield cursors Created: 02/Oct/19  Updated: 29/Oct/23  Resolved: 04/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-42358 Add background collection validation ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-10-07
Participants:

 Description   

When we save and restore cursors during collection validation, we close the cursors and recreate them. This is a problem because closing the cursor clears the memory to which the Record from the last next() call on the cursor points.

We do not need to worry about cache pressure from holding onto a snapshot too long for background validation because we read from a checkpoint. Therefore, there is no need to follow the usual cursor yield policy for regular queries.



 Comments   
Comment by Githook User [ 04/Oct/19 ]

Author:

{'username': 'DiannaHohensee', 'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee'}

Message: SERVER-43777 Validate cmd with

{background:true}

should not yield checkpoint cursors
Branch: master
https://github.com/mongodb/mongo/commit/7aa187dd5571edb1e4e16fbd18b3962d8776fd58

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