A client of ours is creating hourly mongo dumps and sends them over to us. We, then, replay the oplog. However, the client decided that he doesn't want to send over all dumps anymore, but only those needed for debugging in emergency cases. However, my worry is, that not sending everything will lead to inconsistencies on our local mirror.
My main question is the following: what happens when you replay the oplog that contains an update op for a document that's missing? Will it error out or just ignore the operation?
To explain better what I mean, here is an example case:
- client creates entry with
{_id: 1}
on 2017-11-27 - same entry is first updated on 2017-11-28
- client sends over oplog containing only operations from 2017-11-28 forward
- we replay oplog locally
What will happen to the update op for entry with {_id: 1}
? Will it error out? Will it be ignored since there is not document to be updated with such _id?
P.S. currently using mongo 2.4