[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: |
|
||||||||||||
| 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: |