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

XMLWordPrintableJSON

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

      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:
            Samyukta Lanka
            Reporter:
            Tomer Yakir
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: