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

Change the default log-verbosity for `_killOperations`

    • Service Arch
    • Fully Compatible
    • v6.2, v6.0, v5.0, v4.4
    • Service Arch 2023-02-06

      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.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: