Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3443

Investigate changes in SERVER-78241: truncated log line shows number of remaining strings instead of truncated strings

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Original Downstream Change Summary

      This changes the format of the truncation report in the server logs to show how many elements were omitted at each level of the truncated JSON object.

      Description of Linked Ticket

      When running a simple find command with over 5000 elements in $in clause, the output in the log line is: 

       ... _id:{$in:[ <truncated list of 377 out of 5000 values> ] ...
      {
          "truncated" : {
              "command" : {
                  "filter" : {
                      "_id" : {
                          "$in" : {
                              "377" : {
                                  "type" : "string",
                                  "size" : 29
                              }
                          }
                      }
                  }
              }
          },

      I'd love to know how many actual values were truncated which is what I thought it would show but it seems instead to show how many are written.

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: