[SERVER-57828] Complete initial sync and doing replication recovery. Created: 17/Jun/21  Updated: 29/Oct/23  Resolved: 26/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc2

Type: Task Priority: Major - P3
Reporter: Matthew Russotto Assignee: Moustafa Maher
Resolution: Fixed Votes: 0
Labels: pm-1897-M2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-59944 Reopen storage in temporary location. Closed
Backwards Compatibility: Minor Change
Sprint: Repl 2021-10-18, Repl 2021-11-01
Participants:

 Comments   
Comment by Githook User [ 25/Oct/21 ]

Author:

{'name': 'Moustafa Maher Khalil', 'email': 'm.maher@mongodb.com', 'username': 'moustafamaher'}

Message: SERVER-57828 Complete initial sync and doing replication recovery
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/705a2eb4fc76bf7d18b68494f4e579747c4d2d09

Comment by Githook User [ 25/Oct/21 ]

Author:

{'name': 'Moustafa Maher Khalil', 'email': 'm.maher@mongodb.com', 'username': 'moustafamaher'}

Message: SERVER-57828 Complete initial sync and doing replication recovery
Branch: master
https://github.com/mongodb/mongo/commit/3d9a0b0a424be5f16dee60c1933f886945cd5603

Comment by Matthew Russotto [ 19/Oct/21 ]

This comprises

1) With storage open in the .initialSync directory, set the initialDataTimestamp to the special allowUnstableCheckpoints sentinel and set the stable timestamp to Timestamp::min().

2) Run recoverFromOplogAsStandalone before switching out of the .initialSync directory

3) Before calling the onCompletion routine, use oplogDiscLocRegister to register the oplog up to the lastApplied, and set the initialDataTimestamp also to lastApplied.

Generated at Thu Feb 08 05:42:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.