[SERVER-24927] Ignore NamespaceNotFound errors during initial sync apply ops, because they are transient Created: 06/Jul/16  Updated: 24/Mar/17  Resolved: 07/Jul/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.0.12, 3.2.7, 3.3.9
Fix Version/s: 3.2.12, 3.3.10

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

Issue Links:
Backports
Depends
is depended on by SERVER-27834 Index builds during initial sync shou... Closed
is depended on by SERVER-24538 Make small_oplog_rs_initsync_static p... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.2
Sprint: Repl 17 (07/15/16)
Participants:

 Description   

During initial sync, there is a race between when we get the first op to apply and when we call list collections and create them all. Consider the following operation order:

1. Primary creates collection, foo
2. Primary inserts

{a: 1}

into foo
3. Secondary gets first op to apply as insert

{a: 1}

4. Primary drops foo
5. Secondary lists collections, doesn't see foo, and doesn't create foo
6. Secondary applies insert

{a:1}

and gets NamespaceNotFound error.

During initial sync, we should just ignore NamespaceNotFound errors since that means that a drop collection has occurred later on in the oplog.



 Comments   
Comment by Githook User [ 19/Jan/17 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'visualzhou@gmail.com'}

Message: SERVER-24927 Ignore NamespaceNotFound errors during initial sync apply ops, because they are transient
Branch: v3.2
https://github.com/mongodb/mongo/commit/6f2efcb09ca00560471bce88ab725ee0cfb72403

Comment by Githook User [ 07/Jul/16 ]

Author:

{u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'}

Message: SERVER-24927 Ignore NamespaceNotFound errors during initial sync apply ops
Branch: master
https://github.com/mongodb/mongo/commit/5227ccc46fce3de1dd6d89aa72970d6c17980f76

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