[SERVER-20655] During recovery replicas should truncate the oplog to start position of the failed batch Created: 26/Sep/15  Updated: 15/Oct/15  Resolved: 12/Oct/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-18983 Process oplog inserts, and applying, ... Closed
is depended on by SERVER-20921 Add jstest for oplog truncation on re... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: RPL A (10/09/15), Repl B (10/30/15)
Participants:
Linked BF Score: 0

 Description   

We need to truncate the oplog to the start of the active/failed oplog batch when we recover from a failed batch.

While database operations are idempotent, the inserting of the oplog entries are not, and need to be removed (via truncate) before we apply again, much like rollback does.



 Comments   
Comment by Githook User [ 12/Oct/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-20655: truncate oplog when recovering from failed batch
Branch: master
https://github.com/mongodb/mongo/commit/f3f46acbb54a505d91505bd5908fe8424ecc5bcd

Comment by Githook User [ 02/Oct/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: Revert "SERVER-20655: truncate oplog when recovering from failed batch"

This reverts commit 3617494d8c54e98767ec48537589a3b05bbc2667.
Branch: master
https://github.com/mongodb/mongo/commit/ef2ed659fb1e27189ac561233abb20298ee931db

Comment by Githook User [ 01/Oct/15 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-20655: truncate oplog when recovering from failed batch
Branch: master
https://github.com/mongodb/mongo/commit/3617494d8c54e98767ec48537589a3b05bbc2667

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