[SERVER-78448] Run reverse lookup for extra index keys in dbCheck Created: 26/Jun/23  Updated: 08/Jan/24  Resolved: 22/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Xuerui Fa Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: pm-855-milestone-2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-08-07, Repl 2023-08-21, Repl 2023-09-04
Participants:
Linked BF Score: 2

 Description   

Reverse lookup is executed on only the primary.

In reverse lookup, the primary iterates through index table at a given start point until it hits a batch boundary. For each index key traversed in batch:

  • Perform a lookup for the record that the index key points to
  • If we do not find the record, report the inconsistency to the health log
  • Add the size of the index key plus the document to the total count of bytes. If we have exceeded a speed parameter, complete the batch and return


 Comments   
Comment by Githook User [ 21/Aug/23 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-78448 Run reverse lookup for extra index keys in dbCheck
Branch: master
https://github.com/mongodb/mongo/commit/1bb1f5e0b634adf79db99ea64e01e83a6a6aaefc

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