Since the main purpose of a user-specified comment is to allow a query/aggregation to be easily identified and traced through its execution, the comment should always be visible in currentOp, profiler and logs. SERVER-23260 addressed this issue for 3.4 profiler and logs, but in cases where a query is too large for currentOp it is converted to a string and truncated, which can again elide the comment.
- is duplicated by
-
SERVER-1794 make CurOp query's lifespan same as the op - so we can just keep a pointer
- Closed
- related to
-
SERVER-36441 Don't truncate 'comment' command parameter in the slow query logs
- Backlog