[SERVER-82040] Add debug information in PreImagesTruncateManager::_registerAndInitialiseMarkersForTenant Created: 10/Oct/23  Updated: 03/Nov/23  Resolved: 03/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-81980 Make PreImagesTruncateManager avoid c... In Code Review
Backwards Compatibility: Fully Compatible
Sprint: Execution EMEA Team 2023-10-30, CAR Team 2023-11-13
Participants:
Linked BF Score: 120

 Description   

After generating initial markers, the PreImagesTruncateManager code maintains an invariant that if a nsUUID is tracked in a truncate marker, it must have an updated sample of its last entry. 

The invariant is important for catching bugs in the process, but ultimately poses no risk for data corruption or data loss, and only introduces a very small change that pre-images inserted during initialization will never be truncated.

Given initialization has shown to take up minimal time, and a future pre-image insert into a given nsUUID will guarantee eventual truncation for the pre-images on said nsUUID, it should be safe to relax the invariant.



 Comments   
Comment by Githook User [ 03/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-82040 Relax invariant that pre-image truncate markers are initialized with highest RecordId and wall time
Branch: master
https://github.com/mongodb/mongo/commit/46fa7eef8236efea33e03ea1cf28c72119720375

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