[SERVER-43817] Foreground collection validation cmd should periodically yield cursors to release snapshots and minimize cache pressure Created: 03/Oct/19  Updated: 29/Oct/23  Resolved: 11/Oct/19

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

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

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-10-21
Participants:

 Description   

In v4.2 we created cursors as needed, so we would create a cursor to scan an entire index or collection table.

In v4.4, we now create all cursors up front and reuse them errors are found to run the second phase (same as the first phase except saving more information). So rather than holding a snapshot for the duration of a single table scan, we could end up holding a snapshot open for 3x (say one collection scan and two index scans), or 6x (if the corruption was found and the second phase runs all the validation again).



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

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-43817 Foreground collection validation cmd should periodically yield cursors to release snapshots and minimize cache pressure
Branch: master
https://github.com/mongodb/mongo/commit/560b542e24c63c3620f148a19740449613f67cd7

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