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

Provide a mapping from OperationKey to CursorID

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-rc0, 4.5.1
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4
    • Sprint:
      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

              Assignee:
              nicholas.zolnierz Nicholas Zolnierz
              Reporter:
              jason.carey Jason Carey
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: