- 
    Type:Bug 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: Replication
- 
        Fully Compatible
- 
        ALL
- 
        Repl 2018-04-09, Repl 2018-04-23
- 
        19
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
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.
- is related to
- 
                    SERVER-35584 Increase replication rollback time limit -         
- Closed
 
-         
- 
                    SERVER-31040 replace rollback time limit with operation limit -         
- Closed
 
-         
- related to
- 
                    SERVER-33812 First initial sync oplog read batch fetched may be empty; do not treat as an error. -         
- Closed
 
-