Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13051

Investigate changes in SERVER-29794: Adding a comment to all commands


      Downstream Change Summary

      This change allows users to specific 'comment' field. The 'comment' has to be a top level field and can be of any type. The 'comment' field will be visible in profiler, logs and $currentOp for that command.

      Note that some commands (like find, aggregate) previously supported 'comment' field. But they could only be a string. With this change, the comment can be any valid BSON object. This will require changing the existing docs and possibly the drivers.

      Description of Linked Ticket

      The following proposed feature request would allow comments to be added to bulk operations. The comment should behave similar to cursor.comment().

      The requested functionality is as follows:

      • Allow a configurable comment be added to bulk.execute() commands.
      • When using a sharded collection if the bulk operation is directed at more than one shard the same comment should appear for the bulk operation across all shards.
      • If a more verbose log level is enabled that shows the individual operation for the bulk operation the same comment should be present on these individual operations.
      • The comment should appear in the mongod logs, system.profile and db.currentOp().

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            steve.renaker@mongodb.com Steve Renaker (Inactive)
            backlog-server-pm Backlog - Core Eng Program Management Team
            0 Vote for this issue
            3 Start watching this issue

              3 years, 49 weeks ago