[SERVER-82912] Insert no-op oplog entry with higher term in magic restore Created: 07/Nov/23  Updated: 08/Nov/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Ali Mir Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

We need to insert a dummy oplog entry that contains a fake higher term. The term should follow this algorithm:

term = lastOplogEntry.getTerm()
if !term
	term = 1
maxTerm = max(restoreToHigherTermThan, term)
Return maxTerm + 100


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