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

Increase maxTimeMS timeout in awaitdata_getmore_cmd.js

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.6, 4.0.0, 4.1.1
    • 3.4.18, 3.6.9, 4.0.3, 4.1.3
    • Querying
    • Fully Compatible
    • v4.0, v3.6, v3.4
    • 2

    Description

      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

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: