-
Notifications
You must be signed in to change notification settings - Fork 8
After an error emitted by mongo, queries do not return #10
Copy link
Copy link
Open
Description
When mongodb encounters some classes of errors, it will close its connection. After this happens, every query that BackboneORM executes against that collection will not call its callback at all. Ideally, BackboneORM should listen for the error event and reconnect.
Following is the error that exposed this issue:
parseError occured
at [object Object].<anonymous> (./node_modules/mongodb/lib/mongodb/connection/connection_pool.js:182:34)
at [object Object].EventEmitter.emit (events.js:98:17)
at Socket.<anonymous> (./node_modules/mongodb/lib/mongodb/connection/connection.js:389:20)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:526:21)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels