[SERVER-71957] Trigger Collection instantiation in multi-document transaction read path when needed Created: 08/Dec/22 Updated: 29/Oct/23 Resolved: 09/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Task | 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 | ||||||||||||
| Sprint: | Execution Team 2022-12-26, Execution Team 2023-01-09, Execution Team 2023-01-23 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 158 | ||||||||||||
| Description |
|
We need to call openCollection for read operations in multi-document transaction read path when read timestamp is less than latest DDL operation |
| Comments |
| Comment by Githook User [ 09/Jan/23 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: |
| Comment by Githook User [ 09/Jan/23 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: A new version of AutoGetCollectionForRead was added when the PIT catalog lookup feature flag is enabled but we are not in the lock-free read code path. The new AutoGetCollectionForReadPITCatalog does not need to retry acquiring locks when a DDL operation happens between opening the storage snapshot and taking the collection level locks. Instead, when this case is detected we instantiate a Collection instance that matches with the opened storage snapshot. Moved some shared code to the 'catalog_helper' namespace. |