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

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

      Description

      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.)

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

              Created:
              Updated:
              Resolved:
              4 years, 5 weeks, 3 days ago