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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.2.0-rc0
    • Component/s: Querying, Sharding
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Jeffrey Yemin
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: