[SERVER-73232] Change the default log-verbosity for `_killOperations` Created: 24/Jan/23  Updated: 29/Oct/23  Resolved: 02/Feb/23

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.4.19, 5.0.15, 6.3.0-rc0, 6.0.5

Type: Task Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.2, v6.0, v5.0, v4.4
Sprint: Service Arch 2023-02-06
Participants:
Case:

 Description   

Currently every invocation of _killOperations, an internal-only command, produces the following log for every operation key provided to the command:

template <typename Derived>
class KillOperationsCmdBase : public TypedCommand<Derived> {
public:
...
        void typedRun(OperationContext* opCtx) {
            auto opKiller = OperationKiller(opCtx->getClient());
            auto opKeys = Base::request().getOperationKeys();
 
            for (auto& opKey : opKeys) {
                LOGV2(4615602, "Attempting to kill operation", "operationKey"_attr = opKey);
                opKiller.killOperation(OperationKey(opKey));
            }
            Derived::killCursors(opCtx, opKeys);
        }
...

 

This is potentially logged for every hedged operation, adding unnecessary noise to mongod logs. We should consider logging this at D1 or D2 to allow users suppress the log during normal operation.



 Comments   
Comment by Githook User [ 09/Feb/23 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-73232 Change the default log-verbosity for `_killOperations`

(cherry picked from commit cada8ff2bdf32b38170488f574d072a8a9c89545)
Branch: v6.0
https://github.com/mongodb/mongo/commit/65b491d3e1363bf68a337b4a5e3177419ce817b0

Comment by Githook User [ 09/Feb/23 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-73232 Change the default log-verbosity for `_killOperations`

(cherry picked from commit cada8ff2bdf32b38170488f574d072a8a9c89545)
Branch: v5.0
https://github.com/mongodb/mongo/commit/9a818736f42bd50a7349e61ef5f69d6fdc64924f

Comment by Githook User [ 02/Feb/23 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-73232 Change the default log-verbosity for `_killOperations`

(cherry picked from commit cada8ff2bdf32b38170488f574d072a8a9c89545)
Branch: v4.4
https://github.com/mongodb/mongo/commit/856e74a06b19167e5a6bae9011cd27d43360124c

Comment by Githook User [ 02/Feb/23 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-73232 Change the default log-verbosity for `_killOperations`
Branch: master
https://github.com/mongodb/mongo/commit/cada8ff2bdf32b38170488f574d072a8a9c89545

Generated at Thu Feb 08 06:24:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.