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

Log message format for commands exceeding slowms is confusing

    • Query Execution

      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

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            daniel.alabi@10gen.com Daniel Alabi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: