Hello people, we’ve been experiencing a problem on different meteor apps (all at 1.8.1) since yesterday, which makes apps stop responding due to the massive amount of oplog “catch up” query failures. The only thing we could see in the logs is Got exception while reading last entry of undefined which exploring the meteor code takes us to https://github.com/meteor/meteor/blob/e0caf13103e21ceca9c1a6616f67dac8f97c5c48/packages/mongo/oplog_tailing.js#L154
By searching at the forums, I found some old posts mentioning that $natural might not be supported by oplog, but in the end nothing was concluded, so maybe someone has already experienced this and tell us what is going on. The setup ahs been working wonderfully for some time now, so not sure why it would trigger this error suddenly? (atlas limitations on the oplog?)
For now, disabling oplog did the trick to make the apps work again, but would like to get to the bottom of the problem and restore the oplog asap.
Thanks!
UPDATE: I have tried to run the query against our oplog database and indeed i get an error
Mongo Server error (MongoQueryException): Query failed with error code 8000 and error message 'error going deeper into doc error going deeper into doc bad type going deeper into array i'
looks like this part of the query is the one producing the error
{ op: { $in: ['i', 'u', 'd'] } },
and what’s more strange, if i replace that part for
3 different or entries with op:“i”, op:“u”, op:“d”, then it works
UPDATE2: This is issue is now solved. Turns out Atlas had changed something on M0 and M2 deployments that was causing the error.