[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: |
|
||||||||
| 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: |
| Comment by Githook User [ 25/Oct/21 ] |
|
Author: {'name': 'Moustafa Maher Khalil', 'email': 'm.maher@mongodb.com', 'username': 'moustafamaher'}Message: |
| 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. |