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

Increase maxTimeMS timeout in awaitdata_getmore_cmd.js

    • Fully Compatible
    • v4.0, v3.6, v3.4
    • 2

      This test sets the maxTimeMS for a getMore command to be 1 minute. This is too low and should be bumped higher – if the machine running the test is slow, this assertion that the getMore returns 1 document in its batch will fail, because an empty batch will be returned (but with no error set) if the maxTimeMS is exceeded.

      awaitdata_getmore_cmd.js
          cmdRes = db.runCommand(
              {getMore: cmdRes.cursor.id, collection: collName, maxTimeMS: getMoreMaxTimeMS});
          assert.commandWorked(cmdRes);
          assert.gt(cmdRes.cursor.id, NumberLong(0));
          assert.eq(cmdRes.cursor.ns, coll.getFullName());
          assert.eq(cmdRes.cursor.nextBatch.length, 1);
          assert.docEq(cmdRes.cursor.nextBatch[0], {_id: "match", x: 1});
      

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: