Redis Oplog issue in Meteor 3.1

Hi all,

just played around with Meteor 3.1 a little bit and noticed a problem during server boot up. Here’s my log:

error on boot.js TypeError: self._mongoHandle._createSynchronousCursor is not a function
    at new PollingObserveDriver (packages/cultofcoders:redis-oplog/lib/mongo/PollingObserveDriver.js:67:47)
    at MongoConnection._observeChanges (packages/cultofcoders:redis-oplog/lib/mongo/observeChanges.js:113:21)
    at Cursor.observeChanges (packages/mongo/cursor.ts:75:24)
    at _getMultiplexer (packages/montiapm:meteorx/src/fiberless/mongo.js:35:32)
    at _getObserverDriver (packages/montiapm:meteorx/src/fiberless/mongo.js:42:29)
    at exposePollingDriver (packages/montiapm:meteorx/src/fiberless/mongo.js:57:24)
    at exposeMongoAsync (packages/montiapm:meteorx/src/fiberless/mongo.js:19:9)
    at initAsync (packages/montiapm:meteorx/src/server.js:37:3)
    at /tools/static-assets/server/boot.js:453:5
    at /tools/static-assets/server/boot.js:504:7
    at startServerProcess (/tools/static-assets/server/boot.js:501:3)
TypeError: self._mongoHandle._createSynchronousCursor is not a function
    at new PollingObserveDriver (packages/cultofcoders:redis-oplog/lib/mongo/PollingObserveDriver.js:67:47)
    at MongoConnection._observeChanges (packages/cultofcoders:redis-oplog/lib/mongo/observeChanges.js:113:21)
    at Cursor.observeChanges (packages/mongo/cursor.ts:75:24)
    at _getMultiplexer (packages/montiapm:meteorx/src/fiberless/mongo.js:35:32)
    at _getObserverDriver (packages/montiapm:meteorx/src/fiberless/mongo.js:42:29)
    at exposePollingDriver (packages/montiapm:meteorx/src/fiberless/mongo.js:57:24)
    at exposeMongoAsync (packages/montiapm:meteorx/src/fiberless/mongo.js:19:9)
    at initAsync (packages/montiapm:meteorx/src/server.js:37:3)
    at /tools/static-assets/server/boot.js:453:5
    at /tools/static-assets/server/boot.js:504:7
    at startServerProcess (/tools/static-assets/server/boot.js:501:3)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

Btw, are there any plans to make redis-oplog part of meteor core? It would definitely put my mind at ease…

Hey @bratelefant , the method has been renamed to represent the correct behavior and I forgot to make it backwards compatible, I will write a patch for redis oplog ASAP

image

And yes, there are plans to bring to the core or make it an optional built-in strategy, however that’s more long term

2 Likes