Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Sharding 2017-08-21, Sharding 2017-09-11
Description
|
|
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