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

Add 'idleCursors' flag to $currentOp and report stats we already have

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.4
    • None
    • Diagnostics
    • None
    • Fully Compatible
    • Query 2018-09-24

    Description

      In this ticket, we will make the flag gather a list of idle cursors, determined solely by whether or not they are pinned.

      This is similar to what is done in the Proof of Concept except it will also add fields to GenericCursor which are already present on both ClientCursor and ClusterClientCursor

      It also should not bother to include any cursor object in the 'inprog' ops for any getmore ops. This will happen later. This was attempted in the POC but we decided to do it a different way, namely by tracking a GenericCursor on the CurOp object during the getMore command.

      This covers both mongos and mongod. Any fields that exist exclusively on mongod or exclusively on mongos should be excluded in this ticket.

      Attachments

        Activity

          People

            ted.tuckman@mongodb.com Ted Tuckman
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: