[SERVER-25403] DataReplicator initial sync should be resilient to applier failures Created: 02/Aug/16  Updated: 25/Jan/17  Resolved: 21/Sep/16

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

Type: Bug Priority: Major - P3
Reporter: Judah Schvimer Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: Idempotency
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-25068 Make small_oplog_rs_initsync passthro... Closed
Related
is related to SERVER-25332 Initial sync bootstrap needs to handl... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2016-09-19, Repl 2016-10-10
Participants:

 Description   

Currently if the applier has an error it will fassert and terminate the mongod. Some errors should probably be ignored and some should lead to a restart of initial sync.

One example is here where an IndexOptionsConflict error led to an fassert. If this error had been ignored it probably would have been fine. Alternatively initial sync could have just restarted.
https://logkeeper.mongodb.org/build/a3f0586facc3aafcdb1719977208c783/test/579fe5a89041300d28023a18

At the very least we should restart initial sync on errors like this.



 Comments   
Comment by Githook User [ 21/Sep/16 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-25403 DataReplicator initial sync should be resilient to applier failures.
Branch: master
https://github.com/mongodb/mongo/commit/715d30ff455e61fd9a729e6f25f578caf4970e97

Comment by Judah Schvimer [ 02/Aug/16 ]

I think it will solve the race condition leading to this failure. I think either way we should make sure small failures lead to initial sync restarts rather than server crashes.

Comment by Eric Milkie [ 02/Aug/16 ]

Will SERVER-25332 solve this?

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