[SERVER-68268] Insert and merge namespace->catalogId mapping for timestamp Created: 25/Jul/22  Updated: 29/Oct/23  Resolved: 04/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.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:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17, Execution Team 2022-10-31, Execution Team 2022-11-14
Participants:
Linked BF Score: 162

 Description   

When reading PIT in the range [oldest timestamp, startup timestamp] we may not know the correct catalogId and have to search the durable catalog for it. This result should be known to the CollectionCatalog so future reads can avoid the search.

When inserting a correct mapping of catalogId for a given timestamp, we may be able to merge it with previous existing entries.



 Comments   
Comment by Githook User [ 02/Nov/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-68268 Add function to insert known catalogId mapping after durable catalog scan

Added a helper function to insert accurate catalogId mappings after scanning the durable catalog after a previous call has returned unknown. This will allow other reads to avoid scanning the durable catalog again in some cases.
Branch: master
https://github.com/mongodb/mongo/commit/a49375640eec2e8016dfb9a00c8a9d0dd6d00d26

Comment by Githook User [ 01/Nov/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: Revert "SERVER-68268 Add function to insert known catalogId mapping after durable catalog scan"

This reverts commit bdac91fc1f43a22c361a846bd2e84957d4642a98.
Branch: master
https://github.com/mongodb/mongo/commit/4bf52a2c2a27f8c29d6771b59e36c684577da747

Comment by Githook User [ 31/Oct/22 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-68268 Add function to insert known catalogId mapping after durable catalog scan

Added a helper function to insert accurate catalogId mappings after scanning the durable catalog after a previous call has returned unknown. This will allow other reads to avoid scanning the durable catalog again in some cases.
Branch: master
https://github.com/mongodb/mongo/commit/bdac91fc1f43a22c361a846bd2e84957d4642a98

Generated at Thu Feb 08 06:10:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.