[SERVER-50999] Support reading from oplog in LockFree AutoGetCollection helpers Created: 17/Sep/20  Updated: 29/Oct/23  Resolved: 21/Oct/20

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

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Henrik Edin
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 2020-10-19, Execution Team 2020-11-02
Participants:

 Description   

LFR will establish a storage snapshot in AutoGetCollectionForRead* that is consistent with AutoGetCollectionForRead*'s fetched shared_ptr<const Collection>.

Something is going wrong enabling SERVER-50677's work for reading the oplog for replication, exemplified in the oplog_visibility.js test among many others.



 Comments   
Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-50999 Cleanup snapshot in AutoGetCollectionForReadLockFree if collection is dropped during loop
Branch: master
https://github.com/mongodb/mongo/commit/982c685651b1d76222ac84aadf6130a51add1411

Comment by Githook User [ 20/Oct/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-50999 Set WiredTiger RecoveryUnit in oplog read state when opening a snapshot from AutoGetCollectionForReadLockFree.

This is needed as we are opening the snapshot before we have a cursor where this is normally set.
Branch: master
https://github.com/mongodb/mongo/commit/4e1ab29dcca9d4bc4447a2f62f87e076d02bda42

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