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

Provide a mapping from OperationKey to CursorID

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.0-rc0, 4.7.0
    • Querying
    • Fully Compatible
    • v4.4
    • Query 2020-03-23, Query 2020-04-06

    Description

      We introduced OperationKeys as part of SERVER-44167, which allows a user to provide a GUID in any command which it can later be killed by via the killOperations command.

      We'd like to extend that functionality to also kill cursors created by that OperationKey, and would like to see if we can tag those UUIDs onto cursors and provide an accessor which gives a list of cursor ids for a given list operation keys (because we bulk kill operations).

      Ideally I'd want something like:

      std::vector<CursorId> getCursorIdsForOperationKeys(std::vector<OperationKey>)
      

      as a method on the cursor manager. That way I could write an external service to lookup those ids and kill them through the public api.

      Optionally, I'd also be happy to consider a killCursor method which took a vector of OperationKeys

      Attachments

        Issue Links

          Activity

            People

              nicholas.zolnierz@mongodb.com Nicholas Zolnierz
              jason.carey@mongodb.com Jason Carey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: