LearnBoost/mongoose — Issue #743: Silent failure on replicaset failover
Author: vyclone-build
Created: 2012-02-21 14:35:51+00:00
State: open

Hi,

we've just set up our three machine replicaset, pointed at by a few machines running node and mongoose. We've been experimenting with killing the primary server while the node machines are performing a moderate load of read and write transactions. The behaviour we've observed is that some of our callbacks just don't get called, with or without an error - it's hard to tell but it seem like these may relate to queries started around or just before the time of the failover. Subsequent read and write queries work just fine and get directed to the newly elected primary (we have haven't turned on reading from secondaries).

A couple of questions:

- should we expect this behaviour?
- are there any events we should be listening for, or is every error supposed to be signalled to the callback?
- is there any logging we can turn on that might help us to diagnose the problem?
- any other ideas?

Thanks in advance for any help

- Dave