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

Iterating cursor fails when the shell is started with --apiVersion 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      ALL
    • Sprint:
      Repl 2021-04-05, Repl 2021-04-19

      Description

      The following shell script:

      for (var i=0; i<200;i++) {
         db.t.insert({a:1});
      }
      cur = db.t.find().limit(100).batchSize(10);
      res = cur.toArray();
      

      fails in "getMore" with:

      "errmsg" : "Cannot pass in API parameter field apiVersion"
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samy.lanka Samyukta Lanka
              Reporter:
              tomer.yakir Tomer Yakir
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: