[SERVER-61171] Can remove a full bucket from the bucket catalog which is still in use Created: 01/Nov/21 Updated: 09/Nov/21 Resolved: 09/Nov/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gregory Noma | Assignee: | Gregory Noma |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v5.1, v5.0
|
||||||||||||||||
| Sprint: | Execution Team 2021-11-15 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 61 | ||||||||||||||||
| Description |
|
When removing a full bucket from the time-series bucket catalog, we release the bucket lock and acquire the exclusive catalog lock. However, another thread can acquire the bucket lock between these two lines, which means that the bucket can still be in use by another thread when we attempt to destruct it. |