[SERVER-72838] Prevent concurrent direct writes from unsetting kPendingDirectWrite flag Created: 13/Jan/23 Updated: 29/Oct/23 Resolved: 10/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 6.3.0-rc0 |
| Fix Version/s: | 7.0.0-rc0, 6.3.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dan Larkin-York | Assignee: | Fausto Leyva (Inactive) |
| 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 | ||||||||||||
| Backport Requested: |
v6.3
|
||||||||||||
| Sprint: | Execution Team 2023-02-20, Execution Team 2023-02-06 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
If two direct writes to a single time series bucket race with each other, we could end up releasing the bucket for inserts earlier than expected, and corrupt the bucket contents. Consider the following sequence:
|
| Comments |
| Comment by Githook User [ 06/Mar/23 ] |
|
Author: {'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}Message: (cherry picked from commit 32220e43865e7e4a8a47093d55b89312d0a6f4af) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Faustoleyva54', 'email': 'fausto.leyva@mongodb.com', 'username': 'Faustoleyva54'}Message: |
| Comment by Yuhong Zhang [ 13/Jan/23 ] |
|
Chatted with Dan to take some potential future changes into account for the solution to this problem:
|