[SERVER-57046] Fix potential concurrency issue with bucket state management Created: 18/May/21  Updated: 29/Oct/23  Resolved: 07/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Dan Larkin-York Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-14
Participants:
Linked BF Score: 140

 Description   

Currently we set bucket states in such a way that between checking and setting the state we release the lock, and we do not necessarily check the state again after reacquiring the lock. We shouldn't have any correctness issues, but we currently invariant against the bad cases, and we should handle these more gracefully.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-57046 Fix concurrency issue with bucket state management
Branch: v5.0
https://github.com/mongodb/mongo/commit/727e068ad4a1c74278cd57037b8061b5691c2295

Comment by Githook User [ 07/Jun/21 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-57046 Fix concurrency issue with bucket state management
Branch: master
https://github.com/mongodb/mongo/commit/2612eb6e1d42c9704c63e13255148e10ecfca258

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