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

Increase maxTimeMS timeout in awaitdata_getmore_cmd.js

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.6, 4.0.0, 4.1.1
    • Fix Version/s: 3.4.18, 3.6.9, 4.0.3, 4.1.3
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0, v3.6, v3.4
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: