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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Shell
    • None
    • ALL
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: