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

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

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1
    • manual, Server
    • None
    • 5
    • ServerDocs2020: Jun 1 -Jun5, ServerDocs2020: Jun8-Jun12, ServerDocs2020: Jun16-Jun19, ServerDocs2020: Jun22-Jun26
    • true

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 22 weeks, 6 days ago