[SERVER-44164] Create the killOperations command Created: 22/Oct/19  Updated: 29/Oct/23  Resolved: 02/Jan/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-44167 Add OperationKey to OperationContext ... Closed
Related
is related to SERVER-20518 Ability to view / kill connections Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2019-12-02, Service Arch 2019-12-16, Service Arch 2019-12-30, Service Arch 2020-01-13
Participants:

 Description   

This command will accept a request of the following form:

killOperations: {
  “operationKeys” : [UUID(myUuidStr)]
}

and return a response like so:

{
  "info" : "Attempting to kill operation using key <myUuidStr>",
  "ok" : 1
}

This command requires the "__system" role or "enableTestCommands: 1" and the "killop" privilege action in either case. It should be available on both mongos and mongod for testing use, but only for mongos->mongod communication in production environments.



 Comments   
Comment by Githook User [ 02/Jan/20 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@mongodb.com', 'username': 'bcaimano'}

Message: SERVER-44164 Create _killOperations command
Branch: master
https://github.com/mongodb/mongo/commit/14f8744277b7691b68ae541495c64572e3e53d74

Comment by Benjamin Caimano (Inactive) [ 23/Oct/19 ]

I mean the killop privilege action. I incorrectly read https://docs.mongodb.com/manual/reference/built-in-roles/

Comment by Eric Milkie [ 23/Oct/19 ]

Did you mean "killop" ActionType? We have built-in roles that include that action type today but no actual role named "killOp".

Generated at Thu Feb 08 05:05:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.