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

Make killOp report whether op was actually killed

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Query Execution

      It could be a nice improvement to have killOp report whether the op given was actually killed. Although clients couldn't use this for error checking (it's always possible for the operation to end on its own before the killOp is processed), it could be useful if someone is accidentally passing nonsense op ids.

      If this behavior is added, we shouldn't report failure by returning ok: 0, as this could break client code which uses a driver "runCommand" function. Instead, we should follow the pattern used by killCursors, which is to always return success, but include an additional field about whether or not the operation/cursor was actually found and killed.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: