[SERVER-43986] Create table of variables and their before/after states for Rollback Created: 14/Oct/19  Updated: 06/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 1
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

Since a lot of variables change throughout the algorithm, it might be useful to visually track them in a table. This could be included as a comment or in the Architecture Guide.

datum before rollback after rollback
----------------------- ---------------------- -----------------------
last fetched > source's lastApplied <= source's lastApplied
rollback ID N N + 1
prepared txns in progress aborted
stable timestamp ??? oplog common point??
oplogTruncateAfterPoint ??? ???


 Comments   
Comment by A. Jesse Jiryu Davis [ 14/Oct/19 ]

I made this recommendation in the code review for "SERVER-43389 update rollback section with RTT algorithm". I made the table with this script:

https://gist.github.com/ajdavis/d32344f3c97e516cbd40578b7b41f609

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