-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Labels:None
-
Fully Compatible
-
ALL
-
Sharding 2017-08-21, Sharding 2017-09-11
t = db.group2; t.drop(); t.save({a: 2}); t.save({b: 5}); t.save({a: 1}); cmd = { key: {a: 1}, initial: {count: 0}, reduce: function(obj, prev) { prev.count++; } }; result = t.group(cmd); assert.eq(3, result.length, "A"); assert.eq(null, result[1].a, "C");
fails at the last line when it runs in causally consistent readPref secondary