[SERVER-19425] Log message format for commands exceeding slowms is confusing Created: 15/Jul/15  Updated: 14/Mar/23  Resolved: 14/Mar/23

Status: Closed
Project: Core Server
Component/s: Diagnostics, Logging, Querying, Usability
Affects Version/s: 3.1.5
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Daniel Alabi Assignee: Backlog - Query Execution
Resolution: Done Votes: 0
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

I'm seeing log messages like

I COMMAND  [conn3] command test.points command: moveChunk { moveChunk: "test.points", from: "ip-10-184-156-27:30001", to: "ip-10-184-156-27:30002", fromShard: "shard0001", toShard: "shard0002", min: { rand: 0.2 }, max: { rand: MaxKey }, maxChunkSizeBytes: 52428800, configdb: "ip-10-184-156-27:29000,ip-10-184-156-27:29001,ip-10-184-156-27:29002", secondaryThrottle: true, waitForDelete: false, maxTimeMS: 0, epoch: ObjectId('55a55d0af1a7b3537f6b7743') } ntoreturn:1 ntoskip:0 keyUpdates:0 writeConflicts:0 numYields:0 reslen:22 locks:{ Global: { acquireCount: { r: 9, w: 2, R: 3 } }, Database: { acquireCount: { r: 2, w: 2 } }, Collection: { acquireCount: { r: 2, W: 2 } } } protocol:op_command 1930ms

It should be "collection test.points" or "namespace test.points" or something more appropriate instead of "command test.points" since 'test.points' is the namespace for which the command is run.

https://github.com/mongodb/mongo/blob/a05fe115d44c58b6e81dcd60f254d15cfa3ab243/src/mongo/db/curop.cpp#L427


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