[SERVER-41311] Invariant that restore() is called on the RecordCursor prior to its usage, after save() was called Created: 24/May/19  Updated: 29/Oct/23  Resolved: 19/Jun/19

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Zach Yam (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-41282 Investigate invariant failure in WTIn... Closed
related to SERVER-41461 waitWithPinnedCursorDuringGetMoreBatc... Closed
related to SERVER-40547 change handling of nextNotIncreasing ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-06-17, Execution Team 2019-07-01
Participants:

 Description   

This would be helpful for diagnosis and to find violating cursor usages that do not call restore() after using save() prior to using the cursor again. With the work done in SERVER-40547, there have been a few cases where these violations take place and often take time to find the root cause.

Any invariants uncovered during the work done in this ticket should also be resolved.



 Comments   
Comment by Githook User [ 19/Jun/19 ]

Author:

{'name': 'Zach Yam', 'email': 'zach.yam@mongodb.com', 'username': 'zachyam'}

Message: SERVER-41311 Invariant that restore() is called on the RecordCursor prior to its usage, after save() was called
Branch: master
https://github.com/mongodb/mongo/commit/450afc3966ed1a3b06079d14fe80f966009fc994

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