[SERVER-61704] Investigate the usage of abandonSnapshot() in ReadSourceScope Created: 22/Nov/21  Updated: 29/Oct/23  Resolved: 02/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-61458 Calling RSLocalClient::queryOnce(kMaj... Closed
related to SERVER-61715 Set a flag on the RecoveryUnit when i... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-02-21, Execution Team 2022-03-07, Execution Team 2022-12-12
Participants:

 Description   

It is considered risky when ReadSourceScope is used along with other RAII types which assume they are managing the snapshots, like the lock free read helpers. We should let the caller acquire and release the snapshots themselves instead of doing it within the raii type.



 Comments   
Comment by Githook User [ 02/Dec/22 ]

Author:

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

Message: SERVER-61704 Ensure ReadSourceScope is not used when running a lock free read operation
Branch: master
https://github.com/mongodb/mongo/commit/19edc0f6f0e1a7d467ca0a9ce1b668663f93ec7d

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