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

mongos does not kill cursor with getMore command when batch size gets you exactly to the limit

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.2.0-rc0
    • Querying, Sharding
    • Query

    Description

      The getMore command should not return a cursor id if the limit specified on the find command has been satisfied by the returned batch. But if the batch size specified on the getMore command gets you just to the limit, then a cursor id is still returned by mongos. A subsequent getMore will correctly return an empty batch and no cursor id.

      This does not happen with mongod.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: