Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1719

cursor id xxx not found [collection.watch]

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Getting the following error after a period of time when doing a collection.watch.
       
      let stream = this.db.collection("Test").watch([], { fullDocument: 'updateLookup', });
      stream.on('change', changeFunc);
       
      Any ideas on how I debug this?

      { MongoError: cursor id 8439190188036941859 not found
       at C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:593:63
       at authenticateStragglers (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
       at Connection.messageHandler (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
       at emitMessageHandler (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
       at Socket.<anonymous> (C:\Working\my-app\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
       at emitOne (events.js:116:13)
       at Socket.emit (events.js:211:7)
       at addChunk (_stream_readable.js:263:12)
       at readableAddChunk (_stream_readable.js:250:11)
       at Socket.Readable.push (_stream_readable.js:208:10)
       at TCP.onread (net.js:594:20)
       name: 'MongoError',
       message: 'cursor id 8439190188036941859 not found',
       operationTime: Timestamp \{ _bsontype: 'Timestamp', low_: 2, high_: 1540221790 },
       ok: 0,
       errmsg: 'cursor id 8439190188036941859 not found',
       code: 43,
       codeName: 'CursorNotFound',
       '$clusterTime':
       \{ clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 2, high_: 1540221790 },
       signature: \{ hash: [Object], keyId: 0 } } }
      

        1. cursorid.rar
          7 kB
        2. mongod.cfg
          0.6 kB

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            KevinFairclough Kevin Fairclough
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: