Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30498

Investigate coll.group(cmd) is not causally consistent

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 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

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: