christkv/node-mongodb-native — Issue #435: findAndModify + safe:true => wrong callback on error
Author: vincentcr
Created: 2011-12-08 23:13:01+00:00
State: open

this issue is similar to #351 but I'm not able to create a clean repro gist.

it needs the following conditions:

* >= 0.9.7
* passing safe:true in options param of findAndModify
* trigger an error condition in mongo, like a duplicate index key error
* concurrent findAndModify operations
* ???

then, when multiple findAndModify operations are concurrent, the error callback will invoke the wrong one, just like in the bug mentioned above.

i wasn't able to isolate the conditions further, unfortunately. but i'm posting there in case there's something obvious to you in this information.