[DOCS-11620] Docs for SERVER-31007: Calculate rollback time limit correctly Created: 16/Apr/18  Updated: 29/Oct/23  Due: 04/May/18  Resolved: 01/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.4, 4.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Susan Kerschbaumer (Inactive)
Resolution: Fixed Votes: 0
Labels: docs-grab-0504, rollback-non-functional
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-31007 Calculate rollback time limit correctly Closed
Participants:
Days since reply: 5 years, 36 weeks, 5 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Documentation Request Summary:

This ticket added a new server parameter called "rollbackTimeLimitSecs". It represents a time limit, measured in seconds, on the amount of data we are willing to roll back. If the rollback period is too long, we throw an UnrecoverableRollbackError. The duration of that period is calculated using the wall clock times of oplog entries, specifically the difference between the time at the top of the oplog of the rollback node, and that at the common point. This parameter is now freely user-configurable, both on startup and at runtime, the only restriction being that it must be a positive integer.

Engineering Ticket Description:

We limit rollbacks to 30 minutes. Currently we measure the difference in time between the end of the sync source's oplog and the rolling back node's oplog: https://github.com/mongodb/mongo/blob/955dfb45f2f67d2f4570912dbcddecbf3e7bb116/src/mongo/db/repl/roll_back_local_operations.cpp#L97-L108. We should really be measuring the difference between the common point and the end of the rolling back node's oplog.

While we are doing this, we should make the limit configurable.

Scope of changes:

Impact to other docs outside of this product:

MVP:

Resources:



 Comments   
Comment by Githook User [ 01/Jun/18 ]

Author:

{'username': 'skerschb', 'name': 'skerschb', 'email': 'sue.kerschbaumer@10gen.com'}

Message: DOCS-11620: rollback param
Branch: master
https://github.com/mongodb/docs/commit/98f28ddbac0f07e26a094cb9895d2bb1c3c93da6

Comment by Judah Schvimer [ 30/May/18 ]

As part of documenting this, arnie.listhaus@10gen.com requested that we mention that to effectively have no limit, set the limit to 2147483647 (C++'s maximum integer value) seconds. That amounts to 68 years, which should suffice.

Comment by Vesselina Ratcheva (Inactive) [ 17/Apr/18 ]

Note that this only applies to the new rollback via recover to timestamp algorithm.

Generated at Thu Feb 08 08:03:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.