[SERVER-74244] Data race on namespace stored in RecordStore during rename Created: 21/Feb/23  Updated: 29/Oct/23  Resolved: 03/Apr/23

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

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

Issue Links:
Depends
Related
is related to SERVER-62917 Ensure RecordStore stores the full te... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-04-17
Participants:
Linked BF Score: 1

 Description   

Rename operations normally use copy-on-write as the concurrency control on Collection instances. However, there's a separate namespace variable stored in the RecordStore that is shared among all Collection instances.

As reads do not take Collection locks we may read this variable concurrently with a new value being written even as the rename operation holds a MODE_X lock on the collection.



 Comments   
Comment by Githook User [ 29/Mar/23 ]

Author:

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

Message: SERVER-74244 Remove cached namespace in the RecordStore.
Branch: master
https://github.com/mongodb/mongo/commit/94ef553db111be2b86cf9067753f114f92b6c1e3

Generated at Thu Feb 08 06:26:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.