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

Investigate coll.group(cmd) is not causally consistent

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: