-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
None
-
Affects Version/s: 2.1.0
-
Component/s: JavaScript
-
Environment:FC15 x86-64
-
Linux
For Intensives findAndModify operations which use a service call $inc in some cases there is a loss 0.00000000000000005, 0.00000000000000001, 0.66666666666666667 and 0.33333333333333333. This effect is mistery! No memory leak detected, memory and CPU working correctly. Test also working on other OS.
example for node.js (db already connected for database)
begin:
db.collection("test").save(
);
test:
for(var i=0;i<1000000;i++) {
db.collection("test").findAndModify(
,[], {$inc: {test: -0.01}},
{new:true},function(err,v)
{if(v!=null)console.log(v);});
}
After approximately 10 to 10000 operations - there is a loss on the error
This is math error, maybe in V8 engine
P.S. SpiderMonkey engine don't have this bug - I'm already test it.