[SERVER-62477] Cleanup the interface and comments of ReadThroughCache Created: 10/Jan/22  Updated: 29/Oct/23  Resolved: 12/Jan/22

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-01-24
Participants:

 Description   

As a result of the changes for SERVER-59148, a new method has been introduced to retrieve values from the ReadThroughCache. This method neither conforms to the naming convention of the rest of the methods, nor does it explain what are the consistency guarantees that it provides with respect to concurrent in-progress look-ups or values that are newer in the store.

Furthermore, there is a race condition, where maps are accessed without lock.



 Comments   
Comment by Githook User [ 12/Jan/22 ]

Author:

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

Message: SERVER-62477 Cleanup the interface and comments of ReadThroughCache
Branch: master
https://github.com/mongodb/mongo/commit/bbcbf943b3506c6825b67421cc358da4bb4840c4

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