[SERVER-50678] Implement lock-free version of AutoGetCollectionForRead Created: 01/Sep/20 Updated: 29/Oct/23 Resolved: 08/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Catalog, Storage |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Geert Bosch | Assignee: | Dianna Hohensee (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 | ||||||||||||||||||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||||||||||||||||||
| Sprint: | Execution Team 2020-09-21, Execution Team 2020-10-05, Execution Team 2020-10-19 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
Change the AutoGetCollectionForRead class to no longer take collection MODE_IS locks, when flagged to do so, while still performing the same checks and providing the same read semantics. The flagging may be done through a special enum constant to be passed to the constructor, or similar approach. The idea is that we can change individual call sites to use lock-free reads or not. This ticket probably can only be tested through a unit test or dbtest until at least |
| Comments |
| Comment by Jordi Olivares Provencio [ 19/Oct/22 ] |
|
Yes, I only need to backport the skipRSTLLock parameter in GlobalLock for |
| Comment by Dianna Hohensee (Inactive) [ 19/Oct/22 ] |
|
jordi.olivares-provencio@mongodb.com just to be clear, I do not recommend backporting all of this: it's part of a project. But it looks like you just need the GlobalLock changes for |
| Comment by Jordi Olivares Provencio [ 19/Oct/22 ] |
|
Requesting backport due to backports of |
| Comment by Githook User [ 08/Oct/20 ] |
|
Author: {'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}Message: |