-
Type: Question
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
At present, MozJSScriptEngine prints out a log message for every ServiceContext "kill" event, even when MozJSScriptEngine doesn't recognize the OperationContext of the request being killed (see MozJSScriptEngine::interrupt()).
Given that MozJSScriptEngine registers as a listener when mongod starts up and it never unregisters, there is arguably little to no value in having MozJSScriptEngine print out log messages for "kill" events where it doesn't recognize the OperationContext.
If we think there is some value in unconditionally logging every "kill" event, then this logging should happen in ServiceContext::killOperation() or in OperationContext::markKilled().
The goal of this task is to decide between the following options:
- Leave things as-is.
- Change MozJSScriptEngine to only log "kill" events when it recognizes the OperationContext.
- Change MozJSScriptEngine to only log "kill" events when it recognizes the OperationContext, and update ServiceContext::killOperation() or OperationContext::markKilled() to log every "kill" event unconditionally.
See HELP-24308 for context on how this issue came up.
- related to
-
SERVER-56737 Provide a separate path for delisting operations
- Backlog