[SERVER-50789] ReadThroughCache::InProgressLookup accesses `_minTimeInStore` without synchronisation Created: 08/Sep/20  Updated: 29/Oct/23  Resolved: 08/Sep/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-09-21
Participants:

 Description   

Advancing the time in the ReadThroughCache notifies any in-progress lookups that the time in store advanced using the cache's mutex here. However, when this value is passed to the lookup function here, the time in store is read without holding the mutex.



 Comments   
Comment by Githook User [ 08/Sep/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-50789 Use the ReadThroughCache's mutex when accessing `_minTimeInStore`
Branch: master
https://github.com/mongodb/mongo/commit/26166944f65eb4b1b3d4cfa29ddc1c0ee4e534b4

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