Investigate coll.group(cmd) is not causally consistent

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-08-21, Sharding 2017-09-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      
      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

            Assignee:
            Misha Tyulenev (Inactive)
            Reporter:
            Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: