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

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

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

      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"
      

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

              Created:
              Updated:
              Resolved: